jenkins-plugins

How do you pull multiple TFS repos into a single Jenkins job?

让人想犯罪 __ 提交于 2020-01-21 07:00:09
问题 I have a repo that has 2 subfolders $/Repo/project and $/Repo/thirdparty. I need to pull both of those into Jenkins for a single build. Naturally I tried just pulling $/Repo, but this gives me a bunch of other projects along with false polls (it will build every time ANYTHING is checked into $/Repo). I have tried using the multi-scm plugin which works, but does not save the configuration (annoying, but not unusable). I tried using the regular tfs plugin and manually putting the calls for the

Archiving artifacts not in the workspace when build fails

旧城冷巷雨未停 提交于 2020-01-20 08:42:27
问题 When an ANT build step fails in my build I'd like to archive the logs in order to determine the problem. The relevant logs, however, are not located in the workspace, so I have to use a full path to them. The standard artifact archiving feature does not work well with full paths, so first I have to copy the logs into the workspace within some build step so that I can later archive them. I do not want to incorporate the copying code into the original ANT script (it does not really belong there

Jenkins - How to set authorization on project basis

血红的双手。 提交于 2020-01-20 03:07:40
问题 In Jenkins I have two different projects and two users I want to authorize: User1 can only view, build, deploy Project1 . User2 can only view, build, deploy Project2 . I have installed role based plugin, but am unable to get it working. Please help. 回答1: I agree Project Based could solve your problem but it would create headache on administrator if going forward you have 100 users. Then For each user you have to give permissions,which will be a lot of effort and for those who are facing

Jenkins - How to set authorization on project basis

懵懂的女人 提交于 2020-01-20 03:07:06
问题 In Jenkins I have two different projects and two users I want to authorize: User1 can only view, build, deploy Project1 . User2 can only view, build, deploy Project2 . I have installed role based plugin, but am unable to get it working. Please help. 回答1: I agree Project Based could solve your problem but it would create headache on administrator if going forward you have 100 users. Then For each user you have to give permissions,which will be a lot of effort and for those who are facing

Passing client IP information to Jenkins Job

痴心易碎 提交于 2020-01-17 14:33:05
问题 In Jenkins, I want to pass the ip of the client that initiated the build to the Jenkins job so I can access that information inside a class that extends "Builder" or as an environment variable, or anything that works. So for example, in the console log of every build, I can print something like: "Job started by user1 from ip: 10.101.101.1" I know I can get an audit trial by using the "Audit Trial" plugin for Jenkins, but I would like to print that information to the build console so it'll be

Passing client IP information to Jenkins Job

偶尔善良 提交于 2020-01-17 14:32:17
问题 In Jenkins, I want to pass the ip of the client that initiated the build to the Jenkins job so I can access that information inside a class that extends "Builder" or as an environment variable, or anything that works. So for example, in the console log of every build, I can print something like: "Job started by user1 from ip: 10.101.101.1" I know I can get an audit trial by using the "Audit Trial" plugin for Jenkins, but I would like to print that information to the build console so it'll be

Passing client IP information to Jenkins Job

不羁的心 提交于 2020-01-17 14:32:07
问题 In Jenkins, I want to pass the ip of the client that initiated the build to the Jenkins job so I can access that information inside a class that extends "Builder" or as an environment variable, or anything that works. So for example, in the console log of every build, I can print something like: "Job started by user1 from ip: 10.101.101.1" I know I can get an audit trial by using the "Audit Trial" plugin for Jenkins, but I would like to print that information to the build console so it'll be

Jenkins Editable Email Notification Templates

喜夏-厌秋 提交于 2020-01-17 06:30:31
问题 we have configured Jenkins - Editable Email Notification Templates for sending customized email after every build. What we did : Added script under *Jenkins -> Manage Jenkins -> Editable Email Notification Templates-> Add New Template* and then under "Default Content" section, we added default groovy scripts (for example: groovy-html.template - Copy paste content). Save. Now under project job, under Post-build section we selected same template But when we receive emails, then email is coming

Running a Jenkins job with a node parameter fails to mkdirs

浪尽此生 提交于 2020-01-15 11:47:08
问题 I have added a Android Node in Jenkins. Now I am trying to run a Job with the Node as parameter It fails to mkdirs in workspace If i remove the Node as parameter, the Job runs fine Plese find the screenshot for the Node I created. Log: - Loading node environment variables. Building remotely on Android in workspace /var/lib/jenkins/workspace/AndroidT [WS-CLEANUP] Deleting project workspace... java.io.IOException: Failed to mkdirs: /var/lib/jenkins/workspace/AndroidT at hudson.FilePath.mkdirs

Set branch non mergeable

妖精的绣舞 提交于 2020-01-15 03:40:09
问题 I would like to mark my branch as non mergeable, if my jenkins pipeline is not green. The idea is avoid people in the team to merge a branch into master if the pipeline for that branch in Jenkins is not green. Any idea is there´s any jenkins plugins to make this happens in Github webPage?. The idea like I said is, that if for example my branch has some failures, do not allow click the merge button in github page for that branch. Regards. 回答1: For CI/CD on GitHub, this should be fairly simple.