Re: Groovy save project does not always work

2016-04-13 Thread Sverre Moe
Making a change in Script console using Groovy and then envoke project.save(), why is it that when I try to read the value again it does not show the changed value, but the old one. For instance given this groovy script to add some environment variables. #!/usr/bin/env groovy import java.lang.S

Re: How can I write job script and load it to jenkins to work ?

2016-04-13 Thread Richard Bywater
There's also Jenkins Job Builder - http://docs.openstack.org/infra/jenkins-job-builder/ - which isn't a plugin to Jenkins but creates and uploads Jenkins config.xml based off of YAML. Richard. On Thu, 14 Apr 2016 at 13:59 Slide wrote: > There are two options that you might be interested in: > >

Re: How can I write job script and load it to jenkins to work ?

2016-04-13 Thread Slide
There are two options that you might be interested in: 1) Job DSL plugin - https://wiki.jenkins-ci.org/display/JENKINS/Job+DSL+Plugin 2) Pipeline Plugin - https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Plugin Both use a groovy DSL to either generate jobs or run pipelined tasks. On Wed, Apr

How can I write job script and load it to jenkins to work ?

2016-04-13 Thread Andy Billy
hi:) For the more and more jobs needed to be configured ,Is there a better way to configure them other than operating the ui workflow ? if I can write job config script and load it to jenkins ,that is pretty light work。 thanks. -- You received this message because you are subscribed to t

Script works in bash terminal but not in Shell build step in a Jenkins job

2016-04-13 Thread morty
I am running Jenkins on Ubuntu 15.10. I have the following bash script: #!/bin/bash STAGING_DIR="staging" rm -Rf $STAGING_DIR mkdir $STAGING_DIR cd $STAGING_DIR git clone [path-to-my-git-repo] . virtualenv --no-site-packages virtual_django source virtual_django/bin/activate pip install django

S3 Notifications using Jenkins

2016-04-13 Thread alwaysonnet
Hi, Is there anyway that I can configure S3 notifications for AWS Lambda using Jenkins? Any help is appreciated. Thanks, Kalyan -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it

Re: Webpage for Git Client Plugin is empty

2016-04-13 Thread Mark Waite
Thanks! On Wed, Apr 13, 2016 at 11:03 AM Daniel Beck wrote: > > On 13.04.2016, at 18:30, Daniel Beck wrote: > > > Cache weirdness, I think: > > https://wiki.jenkins-ci.org/display/JENKINS/Git+Client+Plugin?foo > > > > Not sure how to fix though, I'll ask Tyler. > > It's fixed now. > > -- > You

Re: Credentials for Each User

2016-04-13 Thread Stephen Connolly
It depends on how the plugin has been written. If it is written correctly, then it should allow the user to select their own credentials if they have the appropriate permissions (I cannot recall, but you may have to enable a permission by system property... Or it could be a bug in the gitlab plugin

Re: Jenkins 2.x: Multibranch Pipeline - Dynamic Jenkinsfile

2016-04-13 Thread Patrick Wolf
Hi, Malte. The "Jenkinsfile" is the marker file that Jenkins uses to find what branches and PRs to build in a multibranch job. The Jenkinsfile tells Jenkins 2 things: 1. I want to build this branch or PR. 2. The actual Job to run. Without a Jenkinsfile, Jenkins assumes that the branch needs to be

Re: Webpage for Git Client Plugin is empty

2016-04-13 Thread Daniel Beck
On 13.04.2016, at 18:30, Daniel Beck wrote: > Cache weirdness, I think: > https://wiki.jenkins-ci.org/display/JENKINS/Git+Client+Plugin?foo > > Not sure how to fix though, I'll ask Tyler. It's fixed now. -- You received this message because you are subscribed to the Google Groups "Jenkins U

Re: Webpage for Git Client Plugin is empty

2016-04-13 Thread Daniel Beck
On 13.04.2016, at 17:42, Mark Waite wrote: > It appears that the git client plugin wiki page has been superseded by a new > page from Steve Cohen. The history of > https://wiki.jenkins-ci.org/display/JENKINS/Git+Client+Plugin shows only one > version, rather than the many versions which shou

Providing web link to downstream job before it completes?

2016-04-13 Thread Andrew Geissler
When calling another job from within a jenkins job, you get this type of output in the console: Run condition [Or] enabling perform for step [Trigger/call builds on other > projects] > Waiting for the completion of The link provided takes you to the other project, but not the specific job wi

Fwd: Webpage for Git Client Plugin is empty

2016-04-13 Thread Mark Waite
It appears that the git client plugin wiki page has been superseded by a new page from Steve Cohen. The history of https://wiki.jenkins-ci.org/display/JENKINS/Git+Client+Plugin shows only one version, rather than the many versions which should exist for that . Is there a way to delete or revert t

Plugin for multi-branch jobs?

2016-04-13 Thread David Aldrich
Hi I am using Matthew DeTullio's Multi-Branch Project Plugin. I have a few issues with it and so am wondering if there is an alternative. I have seen a reference to 'multibranch pipeline builds' in another thread. Would that be an alternative to consider? (I know nothing about pipeline build

Re: jenkins home directory

2016-04-13 Thread Gurusharan
Thanks for the info Hector. Glad that it worked. Bye for now, *Gurusharan S.* On Wed, Apr 6, 2016 at 10:35 PM, Hector Magnanao wrote: > Hello Gurushan, > > These steps worked great !!! One thing that I noticed that restarting > Jenkins didn't update the JENKINS_HOME variable for me. I had to

Jenkins 2.x: Multibranch Pipeline - Dynamic Jenkinsfile

2016-04-13 Thread maltejacobi
Hello, I have a question related to the new Pipeline Multi-branch Project: I have a lot of small repositories which share the same setup. Currently I use the JobDSL to automatically create new Jobs in Jenkins. In the future I would like to use the Multi Branch Pipeline project. I would use a J

Re: Jenkins 2.x - DSL - error handling?

2016-04-13 Thread thomas . lehmann
See my answer here: https://groups.google.com/forum/#!topic/jenkinsci-users/QN7ClRVj1fQ On Wednesday, April 13, 2016 at 10:43:04 AM UTC+2, thomas@teamaol.com wrote: > > Assume a pipeline where one stage "Provide Database" runs a Docker > container providing a database. > Assume we have some

Re: How can I react to a build failure in pipeline?

2016-04-13 Thread thomas . lehmann
Hi, It took me a while to find it but it looks like this is the approach which is also documented ... ... you can find the relating documentation when you use the "*Snippet Generator*" looking for the entry "*catchError*" and then clicking one the question mark. The final implementation of cou

Keyboard navigation on New item

2016-04-13 Thread Manuel Jesús Recena Soto
Hello, Few days ago, I sent a PR [1] in order to provide keyboard navigation on New item page. With the goal of making easier its review I've attached (to Jira issue and to the PR description) a screencast with the result. Please, find the screencast in this link: https://goo.gl/xNpn3D Regards,

Re: I don't understand why one of my jobs starts another

2016-04-13 Thread Erik Vande Velde
The config.xml of the upstream job is attached, there is no obvious reference to the other job ... On Wednesday, April 13, 2016 at 12:40:50 PM UTC+2, Daniel Beck wrote: > > > On 13.04.2016, at 09:39, Erik Vande Velde > wrote: > > > How can i find out WHY jenkins thins that trunk_util wants to

Re: I don't understand why one of my jobs starts another

2016-04-13 Thread Daniel Beck
On 13.04.2016, at 09:39, Erik Vande Velde wrote: > How can i find out WHY jenkins thins that trunk_util wants to start > 2.0_toolbox ? Look at and/or provide the configuration of the job that does something you don't expect it to. -- You received this message because you are subscribed to

Re: Command not found in Execute Shell build step

2016-04-13 Thread morty
Thanks that fixed the problem. On Wednesday, April 13, 2016 at 11:25:29 AM UTC+2, thomas@teamaol.com wrote: > > Have you tried this? => > http://stackoverflow.com/questions/670191/getting-a-source-not-found-error-when-using-source-in-a-bash-script > Put it as first line "#!/bin/bash" >

Re: Command not found in Execute Shell build step

2016-04-13 Thread thomas . lehmann
Have you tried this? => http://stackoverflow.com/questions/670191/getting-a-source-not-found-error-when-using-source-in-a-bash-script Put it as first line "#!/bin/bash" On Wednesday, April 13, 2016 at 10:17:56 AM UTC+2, morty wrote: > > I have installed Jenkins on Ubuntu 15.10. In a Jenkin

Jenkins 2.x - DSL - error handling?

2016-04-13 Thread thomas . lehmann
Assume a pipeline where one stage "Provide Database" runs a Docker container providing a database. Assume we have some tests in a next stage "Run Tests". Assume the tests fails. *How do I cleanup the running Docker container when the* *next stage "Cleanup Database" is not called*? Kind Regards,

I want to run jobs in between build events

2016-04-13 Thread myke
Looking for ideas... I have build events which do not have a fixed time between events I have downstream jobs running tests after each build. Thereafter my environment is doing nothing until the next build event (could be multiple days) I want my test environment to make use of the quiet peri

Command not found in Execute Shell build step

2016-04-13 Thread morty
I have installed Jenkins on Ubuntu 15.10. In a Jenkins job I have a single Execute Shell step with: virtualenv --no-site-packages virtual_django cd virtual_django/bin pwd dir source activate When I run the job I get: + virtualenv --no-site-packages virtual_djangoNew python executable in virtu

Groovy save project does not always work

2016-04-13 Thread Sverre Moe
I am not sure what I am doing wrong with my groovy script. I have written a groovy update script to bulk update all my projects. Sometimes it does not take affect when I call project.save() I can open that project configuration page and everything looks right. The updated content is there. However

I don't understand why one of my jobs starts another

2016-04-13 Thread Erik Vande Velde
We have 3 automatic builds every night: (1) trunk (2) release 2.0 (3) release 1.1. These 3 builds are built up out of flows defined with the 'Build Flow Plugin'. Since a couple of days some jobs out of one build start triggering jobs from another build, and I don't understand why. I just see mes