jenkins-plugins

How to add a post build action in the pipeline in Jenkins

若如初见. 提交于 2019-12-09 11:00:57
问题 Below is my pipeline script node(Slave01) { currentBuild.displayName = "${URL_Name}" } stage 'Pt2ctf process' node(Slave01) { build job: 'Pt2ctf_16_7', parameters: [string(name: 'URL_Name', value: "${URL_name}"), string(name: 'Display_Name', value: "${Display_Name}")] } stage 'add_fields' node(Slave01) { build job: 'add_fields_16_7', parameters: [string(name: 'URL_Name', value: "${URL_Name}")] } The above groovy script would trigger multiple builds in sequence. I have another build to be run

Hudson Build-Time Trend Plugin?

落爺英雄遲暮 提交于 2019-12-09 08:05:50
问题 Is there a plugin which would allow me to create a "trend" graph for a hudson build which shows the build time for that project? I'm tasked with speeding up the build and I'd like to show a nice trend as I speed it up. 回答1: This is supported out of the box: http://SERVER/hudson/job/JOBNAME/buildTimeTrend 回答2: To follow up from the @Pascal's answer, if you would like to bring this graph and show it more prominently you can edit the job description and add an image directly there <img src="http

What is difference between .hpi and .jpi of Jenkins plugins?

夙愿已清 提交于 2019-12-09 07:28:40
问题 I have installed Jenkins plugins in two ways i.e. manually keeping the .hpi file in Jenkins home directory, and installing from Jenkins front-end (Manage Jenkins > Manage Plugins). What I notice here is when I install the plugin manually (downloaded as .hpi file) it installed with extension .hpi and while installing the plugin through Jenkins front-end I notice that plugin again installed as .jpi . But why? What is going on in the background? I know functionality won't change but it looks

Timeout on a Build Step of Jenkins

ぃ、小莉子 提交于 2019-12-09 07:28:34
问题 In Jenkins, is there a way to give different timeouts to each or selected build step? Build-time plugin out gives functionality of timeout "Abort the build if it's stuck" on complete project, what I need is to give different timeouts for each step. This way I can make my process more efficient. 回答1: As of current versions of Jenkins, this can be done. Hit 'Configure', then select the 'Build Environment' tab, and then set your timeout. Here's an screenshot: 回答2: In pipeline jobs you can wrap

Jenkins ext-email plugin fails to send email on build success

ε祈祈猫儿з 提交于 2019-12-09 02:12:52
问题 I have Jenkins version 1.480.3 installed on my machine and Email-Extension Plugin 2.28. I have configured my jobs on Jenkins and everything works fine except the final build success email. I have configured four triggers for Email-Extension plugin: Failure Success Unstable Before Build For all the triggers I have enabled "Attach Log" and all works fine except the "Success". I get the following message on screen: Email was triggered for: Success Sending email for trigger: Success Request made

Jenkins multiple artifacts for the same build

做~自己de王妃 提交于 2019-12-08 23:03:16
问题 Is there a way to save/archive multiple artifacts from the same build? Jenkins only allows a single 'Archive the Artifacts' post build step, and grey's out the option after it has been used once. Maybe the ArtifactsArchiver 's allows multiple patterns? 回答1: You can use Ant-style pattern, e.g. target/*.jar to archive multiple artifacts. And it is possible to use a comma separated list of patterns if your files can't be matched with one pattern, e.g. target/*.jar, target/*.war . The ? button

How to mask a password field in Jenkins Pipeline project?

半腔热情 提交于 2019-12-08 20:38:13
问题 When a password property is defined in a Jenkinsfile : properties([ parameters([ password(name: 'KEY', description: 'Encryption key') ]) ]) Jenkins prompts users to provide its value every time the pipeline is executed: I want this parameter to be masked so that echo ${KEY} does not print the actual value passed by the user. However, at the moment echoing it prints the provided value verbatim: properties([ parameters([ password(name: 'KEY', description: 'Encryption key') ]) ]) node { stage(

List command hangs in xcode

陌路散爱 提交于 2019-12-08 19:14:33
问题 I am using the Jenkins Xcode plugin (https://wiki.jenkins-ci.org/display/JENKINS/Xcode+Plugin) to build an iOS application, however it hangs when running the following command on a project I have inherited from another developer: $ /usr/bin/xcodebuild -list It also hangs when I run this command manually from a terminal. Does anyone know what the cause may be? The warning displayed is also displayed on another project I have, but it does not hang in this case. Running Xcode 6.1 on OS X 10.10 $

Jenkins not picking up the nuget restored packages

旧街凉风 提交于 2019-12-08 16:45:58
问题 I have defined below steps in Jenkins. I could see the nuget restoring the packages on jenkins console but once msbuild starts building its failing with below error for all projects in the solution. Error: "C:\Program Files\dotnet\sdk\2.1.402\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(198,5): error NETSDK1064: Package Microsoft.EntityFrameworkCore.Analyzers, version 2.1.3 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore

Jenkins Chuck Norris Plugin

依然范特西╮ 提交于 2019-12-08 16:03:15
问题 I setup Jenkins for a CI server and everything seems to be working great. So I thought I would install the Chuck Norris Plugin for some humor. I installed the plugin using the plugin manager but I don't see the option to activate it. Has anyone done this is there a dependency I need to install to get this to work? 回答1: You can activate it on the job configuration page. Select "Add post-build action" -> "Activate Chuck Norris". 回答2: Just run next script in jenkins script concole ( http://your