jenkins-plugins

Jenkins - Email-ext plugin display name of job in email

烈酒焚心 提交于 2021-01-28 19:01:51
问题 Is there an easy way to include the display name of the job in the email subject? Maybe there is an environment variable for this? I know it should be possible because the default functionality (email notification) in jenkins already provides this information in the email subject. 回答1: Yes, You can use the built-in environment JOB_NAME , other available environments you can use are like BUILD_STATUS , BUILD_NUMBER , etc. [${BUILD_STATUS}]${JOB_NAME} Build #${BUILD_NUMBER} As always, you can

How to run jenkins build alternatively on slave nodes?

£可爱£侵袭症+ 提交于 2021-01-28 12:20:55
问题 Let's say I have a job A and also a slave configured. I want to run build 1 of Job A on master and build 2 of Job A on slave node. Is there an option to achieve that ? OR Is there a way where my job looks at master and if it already finds a build running, then start the next build on slave ? 回答1: Are you intending to run in parallel or just alternate? (Not a good idea to run jobs on master; could configure a node to run on same host as "master".). Seems to be parallel and you have restricted

How to link Jenkins build information with JIRA issue

帅比萌擦擦* 提交于 2021-01-28 10:43:56
问题 I am looking for an API to add build information to JIRA issues. My CI is Jenkins. I would assume it would behave in the same manner as Bamboo builds I have been searching in here: https://developer.atlassian.com/cloud/jira/platform/rest/ https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/ https://jenkinsci.github.io/jira-steps-plugin/ and I haven't found anything. Is this feature reserved for Bamboo? 回答1: I think you need to install jira plugin and that will enable you to use JIRA

How to link Jenkins build information with JIRA issue

[亡魂溺海] 提交于 2021-01-28 10:42:40
问题 I am looking for an API to add build information to JIRA issues. My CI is Jenkins. I would assume it would behave in the same manner as Bamboo builds I have been searching in here: https://developer.atlassian.com/cloud/jira/platform/rest/ https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/ https://jenkinsci.github.io/jira-steps-plugin/ and I haven't found anything. Is this feature reserved for Bamboo? 回答1: I think you need to install jira plugin and that will enable you to use JIRA

Trigger Jenkins Job only when changes happen to a particular branch

寵の児 提交于 2021-01-28 03:01:41
问题 I have configured a jenkins job and I wish it should be triggered when I make some changes to the Github for that particular branch. I use the Github plugin and has enabled "build when a change is pushed to github". But this option is triggering my Job if someone else create a separate branch and push to that branch. Let me explain it below: Change pushed to branch "release" Jenkins notified and job executes - Expected behavior Another change is now pushed to branch "xyz" but I don't intend

I'm getting JellyException: Could not parse Jelly script : null

南笙酒味 提交于 2021-01-28 02:04:01
问题 I'm trying to configure some features in Jenkins for our project. In the process of configuring Editable Email Notification , I have created a new jelly script file in $JENKINS_HOME/email-templates folder as shown here and accessing it in Jenkins config like this When I build the job, with these setting, I'm getting email with the content "JellyException: Could not parse Jelly script : null" Thanks in advance!! 回答1: I faced a similar issue after I updated my Jenkins installation. I used the

Invalid parameter value for redirect_uri: Missing scheme

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-27 22:54:40
问题 I have hosted Jenkins on Ubuntu 14.04 server. Jenkins version is 2.46 . I am applying Google authentication on Jenkins. For this I am using Google Login Plugin of Jenkins with version 1.3 . I have created Client ID and Secret ID through Google Developer Console. I created it using this tutorial. So while creating credentials, I entered following things: Name: Web Client 1 Authorized JavaScript origins: http://jenkins.******.com Authorized redirect URIs: http://jenkins.******.com/securityRealm

Jenkins TFS plugin throws NumberFormatException

╄→尐↘猪︶ㄣ 提交于 2021-01-27 20:32:26
问题 When I do a poll from Visual Studio Online using the Jenkin TFS Plugin I get the following message and exception. I use TEE-CLC on Ubuntu 12.10. No history entries were found for the item and version combination specified. FATAL: For input string: "" java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:200)

How to copy artifacts from upstream project in Jenkins?

不羁岁月 提交于 2021-01-27 20:12:01
问题 I have two upstream projects(Pro1, Pro2). Both of the upstream projects archive artifacts. I want to create one downstream projects to copy artifacts from the upstream project who trigger the downstream project. For example, if the downstream is triggered by Pro1 , then it will copy the artifacts from Pro1 not Pro2 . In Jenkins, I can configure a project to copy artifacts from other projects but I have to specify the other project name. How can I specify a runtime project name in this case?

Jenkins declarative pipeline throws org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified getAt method

戏子无情 提交于 2021-01-27 12:44:37
问题 I have defined a shared library in Jenkins: import com.codependent.jenkins.pipelines.Utils def call(List<String> mavenGoals){ def processedMavenGoals = mavenGoals.join ' ' pipeline { agent any ... } If i call this from my project's Jenkinsfile like this it works ok: #!groovy @Library('jenkins-pipeline-shared-library-example') _ buildPipeline(['clean', 'install']) However if I omit the parethesis as Groovy syntax allows: #!groovy @Library('jenkins-pipeline-shared-library-example') _