jenkins-plugins

jenkins job on two slaves?

强颜欢笑 提交于 2019-12-05 12:20:48
We need to be able to run a Jenkins job that consumes two slaves. (Or, two jobs, if we can guarantee that they run at the same time, and it's possible for at least one to know what the other is.) The situation is that we have a heavy weight application that we need to run tests against. The tests run on one machine, the application runs on another. It's not practical to have them on the same host. Right now, we have a Jenkins job that uses a script to kick a dedicated application server up, install the correct version, the correct data, and then run the tests against it. That means that I can

Jenkins + Github Pull Request builder display name

谁说胖子不能爱 提交于 2019-12-05 11:54:18
问题 For our project we use GitHub. We have TravicCI enabled (as this was required for our project to use). Besides that, we've also got a full instance of Jenkins running with the pull request builder. Now this all works fine, and in the overview of a pull request this looks like this: Now as you can see travis is displayed nicely with a name. The Jenkins setup is however shown as 'default'. I'd like to change this to something else, however I can not find anything anywhere (github, jenkins,

Using ssh-agent with jenkins while polling SCM

这一生的挚爱 提交于 2019-12-05 11:50:49
Im using the Jenkins ssh-agent plugin in order to give ssh credentials to my builds which works perfectly, however I have it set up to poll the scm (in this case bitbucket git) in order to check for changes. And of course to access the repo in order to poll for changes it also needs those ssh credentials, I cant seem to find anything related to this in the wiki but there must be a way to do so. It seems like such a silly thing for them to not have implemented it, after all if you need ssh credentials to clone and build you would also need them to poll right? Removing the passphrase from the

SCM Sync configuration plugin doesn't commit/push

岁酱吖の 提交于 2019-12-05 10:40:24
I have installed SCM Sync configuration plugin(0.0.10) to save my jenkins settings in my git repository. I have set the git url repository but the plugin does not commit/push, see the screenshot I tried: The private key is in ~/.ssh/id_rsa with the chmod 600 The root user is own of the id_rsa and the .ssh directory The .ssh directory has the permission 700 I did the same for jenkins OS user I can clone the repository(from the console) using the ssh private key, so this means that everything is working The screenshot of the plugin's status message as you can see, the plugin copy all the files

Jenkins job generator

女生的网名这么多〃 提交于 2019-12-05 09:45:15
On a project Im working on we have a pretty advanced command-line interface to build, test, package and deploy software. Now we want to use jenkins as a front-end to this CLI and we want to be able to generate job configurations. We want the interface simple, the user only supply a couple of parameters and jenkins will then query our CLI and generate the needed build steps. Simple use case: Create new domain-specific-job Select Product Jenkins now queries the CLI and updates the next drop-down with the products different brances. Select branch Jenkins generates the build steps by querying the

How Can I have job scope Credentials in Jenkins?

大城市里の小女人 提交于 2019-12-05 09:40:17
First sorry if this question and its solution exist somewhere but I cannot find it. I would like to be able to create credentials inside a job and only usable inside this job, a kind of job scope credential. For the moment Credential plugins only propose Global and System scope so the credentials are avaialble to all jobs. The Credentials Binding Plugin does not seem to solve my problem either but to be fair, I am not sure to understand all its features and I would prefer not use text or file provider. I use jenkins 1.589 Credential Plugin 1.18 Regards Using the Folders and Credentials Binding

Jenkins JUnit Attachments Plugin throws 404 for attached files

本秂侑毒 提交于 2019-12-05 08:56:16
Currently I'm running a Maven 3 build with Selenium/WebDriver tests. Whenever a test fails, it will snap a screenshot and save it to the correct folder (for the plugin). When the job finishes, I can see all the attachments listed. I can also copy the attachments off of the Jenkins server and view them. However, whenever I try to view them in Jenkins, I'm seeing a 404 file not found exception. I've double checked the permissions of all the files involved, tried using both .jpg and .png extensions. I've commented on the JUnit Attachments Plugin wiki page. I'm thinking that it might be a bug at

Jenkins Packages on Groovy Classpath?

时光毁灭记忆、已成空白 提交于 2019-12-05 08:26:57
When using the Groovy Jenkins plugin (not the Groovy Post Build Plugin, which is a different thing) as a Post Step, I can't resolve classes in the hudson.model package. Do I need to add the Jenkins .war onto the classpath, or should these packages already be there? Script: import hudson.model.*; import hudson.util.*; AbstractBuild currentBuild = (AbstractBuild) Thread.currentThread().executable; def mavenVer = currentBuild.getMavenArtifacts().getModuleRecords()[0].mainArtifact.version; println mavenVer; ParametersAction newParamAction = new hudson.model.ParametersAction(new hudson.model

Jenkins detects SVN changes but doesn't update workspace?

你。 提交于 2019-12-05 07:22:34
I'm using Jenkins 1.461 and I have an issue when using SVN polling. My repository URL has the form svn+ssh:// * **** . I've configured Jenkins to poll for changes every 5 minutes. What happens is that every 5 minutes, changes are detected : Started on May 2, 2012 8:26:24 PM Received SCM poll call on for XXXXXXXXX on May 2, 2012 8:26:25 PM svn+ssh://X.X.X.X/svn/XXXX/XXXXXXXXX/XXXXXXXX/trunk is at revision 26,192 (changed from 26,181) Done. Took 2.6 sec Changes found But, the workspace is not updated after each poll. The last revision of the workspace is still 26181 and not 26192 as expected. I

Query for last successful build number in Jenkins with change

≯℡__Kan透↙ 提交于 2019-12-05 06:48:29
Example: 32 - fail 31 - stable no change (triggered by parent) 30 - stable with changes 29 - fail ... I want a query to return 30 So far what I got: To query the last stable build number: http://jenkins/job/project_name/lastStableBuild/buildNumber This returns 31 . Not exactly what I need. To check if this build has changes, the only way I know is : http://jenkins/job/project_name/31/api/json Then I need to go inside the huge JSON and check if any item in changeSet > items. Is there a easier way to query for the latest stable build with changes (30) ? Jenkins' Remote access API with: http:/