jenkins-plugins

Jenkins using File Parameter with MultiJob Project

妖精的绣舞 提交于 2019-12-24 00:25:55
问题 I am using the MultiJob Project in order to implement a process the runs every time there is a push to a certain Git branch. How can I pass parameters between 2 different jobs (each job is located in a separate MultiJob Phase) What i tried to do is: Job A: (Run on the Master - windows) echo 2 parameters into a new file (Called parameters.properties) that i placed in a shared location (not in the workspace of Job A) so this file's contnet looks like: currentBuild=2012-11-27_09-20-50

Resource mange external nodes in Jenkins for tests

亡梦爱人 提交于 2019-12-23 22:23:56
问题 My problem is that I have code that need a rebooted node. I have many long running Jenkins test jobs that needs to be executed on rebooted nodes. My existing solution is to define multiple "proxy" machines in Jenkins with the same label (TestLable) and 1 executor per machine. I bind all the test jobs to the label (TestLable). In the test execution script I detect the Jenkins machine (Jenkins env. NODE_NAME) and use that to know what physical physical machine the tests should use. Do anybody

Jenkins Build Name Setter Plugin does not find variable

末鹿安然 提交于 2019-12-23 20:44:49
问题 In Jenkins I use a parameterized build. I use the "This build is parameterized" and "List subversion tags" to which I set the "Name" to be SVN_TAG. Then I set this SVN_TAG in "Set Build Name" to "${SVN_TAG}". However, the build then says "Unrecognized macro 'SVN_TAG' in '${SVN_TAG}'" and it does not set the build name. Any ideas to why the build doesn't find this macro? 回答1: If you click on the (?) help icon next to the Build Name field, you'll see a list of the macros you can use. Build

Jenkins email ext jelly script include file contents

心不动则不痛 提交于 2019-12-23 20:33:15
问题 Can I display the contents of another file in my jelly script output? 回答1: If the file is included in the workspace of the job, declare your variable such as: <j:set var="fileContent" value="${build.getWorkspace().child("results.html")}"/> And call it this way: ${fileContent} 回答2: Yes, you can use the ${FILE, path} token to include the contents of a file (path is relative to your workspace directory). This info is taken from the Content Token Reference in the email-ext part of your job

API (curl)Command to Approve a promoted build Job in Jenkins

爷,独闯天下 提交于 2019-12-23 17:32:07
问题 Is there any way can an Approver approve a specific build using curl command? I am using Promoted Builds Plugin for manual approval for builds. when i am trying below curl command it is giving "Error 400 Nothing is submitted". I searched everywhere but couldn't get proper answer. Please help curl http://admin:XXXXXXXXXXXX@JENKINS_URL/job/JOB_NAME/129/promotion/promotionProcess/PromoteForTesting/promotionCondition/hudson.plugins.promoted_builds.conditions.ManualCondition/approve?token

Jenkins using wrong version of Ruby(rvm)

隐身守侯 提交于 2019-12-23 13:16:49
问题 Have next situation: Using jenkins Installed rvm with different ruby versions(2+) Installed rvm plugin Enabled option "Run the build in a RVM-managed environment" in "Build Environment" with ruby version ruby-2.3.0@global Now about problem. After each starting of jenkins job I can see next output: Capturing environment variables produced by 'rvm use ruby-2.3.0@global' $ bash -c export [workspace] $ bash -c " source /usr/local/rvm/scripts/rvm && rvm use --install --create ruby-2.3.0@global &&

Jenkins using wrong version of Ruby(rvm)

落花浮王杯 提交于 2019-12-23 13:16:10
问题 Have next situation: Using jenkins Installed rvm with different ruby versions(2+) Installed rvm plugin Enabled option "Run the build in a RVM-managed environment" in "Build Environment" with ruby version ruby-2.3.0@global Now about problem. After each starting of jenkins job I can see next output: Capturing environment variables produced by 'rvm use ruby-2.3.0@global' $ bash -c export [workspace] $ bash -c " source /usr/local/rvm/scripts/rvm && rvm use --install --create ruby-2.3.0@global &&

Any alternative to Coverity on Jenkins? [closed]

拥有回忆 提交于 2019-12-23 12:29:10
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm running jenkins in my ubuntu desktop. I need a static code analysis report before pushing my c++ code. I found that coverity is expensive. I'm looking for free analysis tool. Is there any alternatives to Coverity? 回答1: I recommend SONAR (or SonarQube as it is now called) , you can use it with multipule

Jenkins email-ext trigger e-mail for culprits not working as expected

浪尽此生 提交于 2019-12-23 12:24:04
问题 I'm trying to send e-mail to culprits when the build fails. If I start the build manually the e-mail is sent, but If I start the build through SCM polling e-mail is not send and the console output for the build shows the message: An attempt to send an e-mail to empty list of recipients, ignored. Is that the right way the plugin should work (culprit should be a person, not scm polling)? Im using: OS: Ubuntu Server 11.04 Jekins: 1.532.1 Email-ext plugin: 2.37.2 回答1: Currently (before the next

How to run continuous integration in parallel across multiple Pull Requests?

可紊 提交于 2019-12-23 12:23:18
问题 I am testing use of Jenkins with Github pull request builder plugin I have successfully set up a toy project on Github and dev installation of Jenkins so that raising a PR, or pushing changes to a PR branch triggers a build. Mostly this works as required - a few things don't match preferred workflow, but the freedom from having to write and maintain our own plugin is a big deal. I have one potential showstopper. The plugin queues up all pushes in all PRs it sees, and only ever seems to run a