jenkins-plugins

Configuring Jenkins with SSH jump hosts

 ̄綄美尐妖づ 提交于 2020-02-03 12:17:56
问题 How do I configure SSH connections in jenkins, when I have an intermediate bastion with its own user and key like this: Host jump User user1 HostName jumpdns IdentityFile /Users/myname/.ssh/jumpkey.pem Host server User user2 HostName serverdns IdentityFile /Users/myname/.ssh/serverkey.pem ForwardAgent yes ProxyJump jump This works on cli as ssh server . But I dont know how to encode that into my jenkins that is running locally in my laptop from within my user and not as a separate jenkins

Jenkins Slave Self Register

孤人 提交于 2020-01-30 06:01:32
问题 I am creating a Jenkins master/slave cluster and I am having trouble finding a way to have new slaves auto register themselves with the master. My current set up is I run some Terraform scripts that will create the master and 5 slaves. Then I have to log in to the master node and Manage Jenkins -> Manage Nodes -> New Node and manually create the number of nodes I want. Then I RDP into my slaves and run the command java -jar agent.jar -jnlpUrl http://yourserver:port/computer/agent-name/slave

Jenkins Slave Self Register

情到浓时终转凉″ 提交于 2020-01-30 06:00:05
问题 I am creating a Jenkins master/slave cluster and I am having trouble finding a way to have new slaves auto register themselves with the master. My current set up is I run some Terraform scripts that will create the master and 5 slaves. Then I have to log in to the master node and Manage Jenkins -> Manage Nodes -> New Node and manually create the number of nodes I want. Then I RDP into my slaves and run the command java -jar agent.jar -jnlpUrl http://yourserver:port/computer/agent-name/slave

How to push Jenkins plugins changes using zookeeper

◇◆丶佛笑我妖孽 提交于 2020-01-25 09:43:05
问题 I've installed zookeeper on my machine(test machine) and trying to achieve following item: 1) Whenever the Jenkins plugins get some (version) changes, i need to push those changes to all other Jenkins machine(example: jenkins1, jenkins2, jenkins3, jenkins4) using zookeeper I googled and couldn't find any related articles/topics to understand in detail. It would be great if anybody throw some light on this. Thanks in advance. 来源: https://stackoverflow.com/questions/57959775/how-to-push-jenkins

Store Kubernetes Cluster Credentials in Jenkins and use in declarative pipeline

会有一股神秘感。 提交于 2020-01-25 09:26:11
问题 I am trying to deploy k8s cluster using Helm 3 and jenkins. Jenkins and k8s running on different servers.I merged the kubeconfig files and I had all information in one config file ./kube directory. I would like to deploy my app to the related environment and namespace according to the GIT_BRANCH value. I have two question for below script. 1.What is the best way should I store k8s cluster credentials and will use in pipeline. I saw some plugins such as Kubernetes CLI but I can not be sure

Read Config file in jenkins groovy script for build parameters

随声附和 提交于 2020-01-24 20:00:08
问题 I have a choice list for a parameter. The values in choice list is based on user who logs in jenkins. For example a student opts for subjects maths science and commerce, he should be able to see his own subjects in the choice drop down. I have the mapping of each student with their enrolled subject in a json file. I used Config File Provider plugin to refer this file in jenkins. Now how should I load this configuration files through groovy script in the choice parameters. I am using Extended

Unable to install suggested plugins of jenkins on docker

眉间皱痕 提交于 2020-01-24 09:32:16
问题 I had launched jenkins through docker, it has been launched in administrator mode. After entering password when i selected to install suggested plugin it fails with most of the installation. Post that when i created jenkins user and navigated to jenkins home page it displays errors as shown in below screenshot. Installed docker and jenkins through below commands sudo yum install docker-ce systemctl start docker docker pull Jenkins docker run -p 8080:8080 jenkins Also when i go to manage

Unable to install suggested plugins of jenkins on docker

三世轮回 提交于 2020-01-24 09:32:06
问题 I had launched jenkins through docker, it has been launched in administrator mode. After entering password when i selected to install suggested plugin it fails with most of the installation. Post that when i created jenkins user and navigated to jenkins home page it displays errors as shown in below screenshot. Installed docker and jenkins through below commands sudo yum install docker-ce systemctl start docker docker pull Jenkins docker run -p 8080:8080 jenkins Also when i go to manage

Sparse Checkout with Jenkins DSL Plugin?

会有一股神秘感。 提交于 2020-01-23 12:59:51
问题 Does anyone have a code sample for the correct configure { ... } block needed in the Jenkins DSL plugin to set up a git sparse checkout? It appears as if the config.xml section looks like this: <extensions> <hudson.plugins.git.extensions.impl.CloneOption> <shallow>false</shallow> <reference>/build/jenkins/codebase.git</reference> </hudson.plugins.git.extensions.impl.CloneOption> <hudson.plugins.git.extensions.impl.SparseCheckoutPaths> <sparseCheckoutPaths> <hudson.plugins.git.extensions.impl

SCM Sync configuration plugin doesn't commit/push

ⅰ亾dé卋堺 提交于 2020-01-23 07:28:12
问题 I have installed SCM Sync configuration plugin(0.0.10) to save my jenkins settings in my git repository. I have set the git url repository but the plugin does not commit/push, see the screenshot I tried: The private key is in ~/.ssh/id_rsa with the chmod 600 The root user is own of the id_rsa and the .ssh directory The .ssh directory has the permission 700 I did the same for jenkins OS user I can clone the repository(from the console) using the ssh private key, so this means that everything