jenkins-plugins

Jenkins Priority Sorter Plugin - How to use BuildPriority Parameter

回眸只為那壹抹淺笑 提交于 2019-12-23 12:08:50
问题 I am trying to dnymaically apply priorities (from 1 to 5) to Jenkins jobs started via a URL containing the BuildPriority parameter. In the Priority Sorter Config I selected ->Use additional rules when assigning a priority to a Job and chose "Use Priority from Build Parameter" as Build Strategy. I left Build Parameter Name = "BuildPriority". Starting the Job via: http://localhost:8080/job/myJobName/buildWithParameters?PARAM1=value1&PARAM2=value2&BuildPriority=1 doesn't apply the priority. I

Email Extension Plugin - can't get BUILD_LOG_EXCERPT to work

你离开我真会死。 提交于 2019-12-23 11:46:43
问题 No matter what I put in BUILD_LOG_EXCERPT, all I get is an email with an empty body, thus could use some assistance. I have a java program that writes to console. Snippet of Jenkins console output looks like this: ... [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building project1 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- exec-maven-plugin:1.4

Email Extension Plugin - can't get BUILD_LOG_EXCERPT to work

北城以北 提交于 2019-12-23 11:46:10
问题 No matter what I put in BUILD_LOG_EXCERPT, all I get is an email with an empty body, thus could use some assistance. I have a java program that writes to console. Snippet of Jenkins console output looks like this: ... [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building project1 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- exec-maven-plugin:1.4

Jenkins Build Flow versus Workflow (Pipeline) plugin

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 07:46:04
问题 I notice there are (at least) two orchestration options for Jenkins Build Flow Workflow - Now known as Pipeline I found Build Flow first and implemented an orchestration job around that which seems to work OK for our needs. Are there any advantages to switching to Pipeline? My thoughts for switching to Pipeline are Pro - The project seems more active than Build Flow Con - The DSL seems much more complex 回答1: Pipeline / Workflow is based off concepts from the Build Flow plugin. Based on the

How can I retrieve a list of all Jenkins build steps available to a job?

只谈情不闲聊 提交于 2019-12-23 04:41:59
问题 I'm currently looking for a way to get a list of all available build steps for a Jenkins job. Kinda like: FreeStyleProject newJob = Jenkins.getInstance().createProject( FreeStyleProject.class, this.jobName ); // TODO: Get the available build steps of the created job, following is pseudocode newJob.getAvailableBuilders(); Thanks in advance! 回答1: Well, apparently Builder.all() does exist. This solved my problem: List<BuildStepDescriptor<? extends Builder>> builders = new ArrayList

How can I retrieve a list of all Jenkins build steps available to a job?

╄→гoц情女王★ 提交于 2019-12-23 04:41:29
问题 I'm currently looking for a way to get a list of all available build steps for a Jenkins job. Kinda like: FreeStyleProject newJob = Jenkins.getInstance().createProject( FreeStyleProject.class, this.jobName ); // TODO: Get the available build steps of the created job, following is pseudocode newJob.getAvailableBuilders(); Thanks in advance! 回答1: Well, apparently Builder.all() does exist. This solved my problem: List<BuildStepDescriptor<? extends Builder>> builders = new ArrayList

NotSerializableException using Publish Over SSH in Jenkinsfile

独自空忆成欢 提交于 2019-12-23 04:36:21
问题 I'm trying to use the Publish over SSH plugin inside a Jenkinsfile. However, I'm getting the exception java.io.NotSerializableException in the createClient method. This is my code: def publish_ssh = Jenkins.getInstance().getDescriptor("jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin") def hostConfiguration = publish_ssh.getConfiguration("${env.DSV_DEPLOY_SERVER}"); if( hostConfiguration == null ) { currentBuild.rawBuild.result = Result.ABORTED throw new hudson.AbortException(

Jenkins sending notifications to the wrong commit id

此生再无相见时 提交于 2019-12-23 04:19:05
问题 I have several Jenkins pipelines, all importing a shared library from Bitbucket for some utility methods, and I want to send build status notifications to each project's own Bitbucket repo. I installed the Bitbucket build status notifier plugin, but I'm experiencing a weird behavior: when bitbucketStatusNotify is being called in my pipeline, this happens: Sending build status INPROGRESS for commit <sha> to BitBucket is done! And that would be ok, but <sha> is the commit id of the last commit

Copy artifacts from specific promoted build

て烟熏妆下的殇ゞ 提交于 2019-12-23 04:08:24
问题 I have two jobs in Jenkins. First of the name “Build” and the second of the name “Deploy to test environment”. In the first job, tester sets promotion manually, and then only promoted builds can be deployed. In second job I added “Promoted Build Parameter” which generates combobox with promoted builds but I can’t connect the value of this parameter with “Copy artifact from another project” build step. So how can I copy artifacts from the selected promoted build? 回答1: In your deploy project:

Creating Jobs for Multijob Plugin in Jenkins

耗尽温柔 提交于 2019-12-23 03:24:37
问题 I had a requirement for executing jobs in parallel and came across this plugin called MultiJob plugin for Jenkins. After going through documentation, i created phases and gave job names. But where do i create job basically.I mean the script ,build step and post build step for job "TaskToExecute1" and "TasktoExecute2". Thanks, VVP 回答1: Vishnu, you need to create the jobs that are referenced from the "Job Name". So in your example, create a separate job/project (e.g. "New Item" -> "Freestyle