jenkins-plugins

Job based security per branch - Jenkins Multibranch pipeline

依然范特西╮ 提交于 2019-12-10 18:44:21
问题 I have a Jenkins multi-branch pipeline for building artifacts and there are branches for master , *-dev etc. I want to enable project based security on a per branch basis, ie only allow devs to run the *-dev branch jobs of the build not any other ones because doing so would have undesirable effects. I know there is project based security, but I didn't see any per branch. Does this exist? We are behind in updating Jenkins and are currently running Jenkins 2.46.1 . Otherwise I am thinking I

How to block a Jenkins job from running at certain times

一个人想着一个人 提交于 2019-12-10 17:42:54
问题 I have a Jenkins job which restarts our small in-house production system. It is fully automated, so when we check-in code changes, we run tests and other verification steps and finally automatically deploy the new version. It is usually not a problem restarting the system as it will be back shortly and people are aware that there might be a small outage now and then. However there are times during the day when I know that the system is heavily used and thus would like to prevent any automated

How do I get the build number from where I executed a rebuild?

北慕城南 提交于 2019-12-10 17:37:31
问题 When I click "rebuild" from the page of a build jenkins rebuilds and runs a new job- a new job with a new jenkins build number. How do I get the build number of the job where I executed the rebuild? Im not talking about the previous build number. Say Im on build 10. I go to build 5 and click rebuild. How do I that build number (5) from inside the pipeline like I can with env.BUILD_NUMBER ? 回答1: I assume that you are using Groovy Pipeline and already know the Global Variable (see Global

Conditional svn checkout in polling Jenkins job

ε祈祈猫儿з 提交于 2019-12-10 17:34:19
问题 I am trying to prevent an svn checkout on an svn-polling Jenkins job depending on a condition. Pre-steps are executed after the checkout and this job is triggered through svn polling. Please advise. 回答1: There is a plugin that allows to execute a step before SVN checkout https://wiki.jenkins-ci.org/display/JENKINS/pre-scm-buildstep However, it does not prevent the job from continuing even if those pre-scm steps fail. Latest versions allow to fail the build if this pre-build step fails. One

“peer not authenticated ” error in Artifactory plugin - Jenkins

╄→гoц情女王★ 提交于 2019-12-10 16:47:01
问题 I am using Jenkins version 1.566 and Artifactory plugin version 2.2.2. I am running artifactory 2.66 in its own jetty container. It was running as http but recently I changed it to https. Now if I change the artifactory server url in Jenkins configuration from http to https and port 8443, I get the error: "Error occurred while requesting version information: peer not authenticated" If I go to https url and login using the same user name and password am successful. Why is this error happening

How to use build name setter plugin?

落花浮王杯 提交于 2019-12-10 16:24:39
问题 Does anyone know if there is a user manual somewhere on how to use the build name setter plugin for jenkins? The jenkins plugin website just seems to have a link to download the plugin and no information on how to use it. https://wiki.jenkins-ci.org/display/JENKINS/Build+Name+Setter+Plugin 回答1: Indeed no official user guide for this plug-in. However, clicking the icon near this plug-in controls will provide you all the information you need (click here to see the image below in full resolution

Gatling plugin for Jenkins without pom.xml

半腔热情 提交于 2019-12-10 15:59:49
问题 Has anyone tried to use gatling plugin for jenkins, but without maven? I don't have maven project, but I generate results using Gatling from terminal (bash script). Using -rf switch I change results folder destination to /var/lib/jenkins/jobs/Gatling_test/builds/newest_build/results , but anyway there is error: Archiving Gatling reports... ERROR: Publisher com.excilys.ebi.gatling.jenkins.GatlingPublisher aborted due to exception java.lang.IllegalArgumentException: Could not find a Gatling

1 jenkins job trigger multiple jenkins jobs based on parameters

梦想的初衷 提交于 2019-12-10 15:34:19
问题 Is there any Jenkins plugin that helps with the following: if a directory <XXX* , is present in SVN folder <GoRoCo> then the <GoRoCo>_<XXX> Jenkins job is called ? Example: In job "TEST" , I specify parameters like directory name (A, B , C) and folder name (G1R2) then job "TEST" should trigger the jobs "G1R2_A" , "G1R2_B" and "G1R2_C" 回答1: Use Parameterized Trigger Plugin. When specifying jobs to call in the plugin you can use tokens, as in JOB_${PARAM1}_${PARAM2} . 回答2: Take a look at that

Showing exception while connecting slave to master using headless jnlp

Deadly 提交于 2019-12-10 15:27:38
问题 i am using jenkins 1.447.2 version.My master is linux and slave is windows Jul 27, 2012 12:44:17 PM hudson.remoting.jnlp.Main$CuiListener <init> INFO: Hudson agent is running in headless mode. Jul 27, 2012 12:44:17 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [http://10.10.1.162:8080/jenkins/, http://dem Jul 27, 2012 12:44:38 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to demo.sigmainfo.in:8050 Jul 27, 2012 12:44:38 PM hudson.remoting.jnlp

Github-plugin for Jenkins get committer and author name

╄→尐↘猪︶ㄣ 提交于 2019-12-10 15:16:35
问题 If I understand well, git plugin exposes committer and author names and emails to environmental variables GIT_AUTHOR_NAME , GIT_COMMITTER_NAME , GIT_AUTHOR_EMAIL and GIT_COMMITTER_EMAIL based on the global configuration of git. Is there a way to get that info using Github-plugin? Does Github-plugin exposes payload info, getting from github-webhook, to environmental variables or to something else? 回答1: In reality these variables are available just when you overwrite the Author Name and Author