Ansible role for installing and configuring Jenkins 2

2016-04-20 Thread Karl Davis
Evening all, Just wanted to put this Ansible role I created for Jenkins 2 out there: https://github.com/karlmdavis/ansible-jenkins2. I initially tried to use/adapt some of the existing roles from other folks, but was running into too many problems with them, so started from scratch. So far,

How can I configure Jenkins to not use the Internet?

2016-04-20 Thread krusolu
When I try to add an agent to my master by using the Jenkins Chef community cookbook, it attempts to access the internet. The master will not have any access to the Internet, even through a proxy. How can I stop this behavior? -- You received this message because you are subscribed to the

Re: Storing job configurations with source code in VCS

2016-04-20 Thread Patrick van der Velde
That sounds like a promising approach. I will go investigate that On Saturday, 9 April 2016 01:16:58 UTC+12, Martin d'Anjou wrote: > > You could look at the Simple Build For Pipeline Plugin > , combined > with some TBD way of

Re: LDAP in Jenkins Fails, but ldapsearch works

2016-04-20 Thread Shravan naidu
The Jenkins LDAP plugin has a bug which fills up manager DN field with a random string and that fails the login procedure. Luckily, the manager DN field is not mandatoy to be filled and can be left blank. I would recommend to fill root DN and leave rest of the field blank and try logging in. I

Re: Create Jira component 'amazon-ecr-plugin'

2016-04-20 Thread Slide
Can you file a request in the HOSTING project in JIRA ( https://issues.jenkins-ci.org)? On Wed, Apr 20, 2016 at 12:14 PM Marcus Wallin wrote: > Hi, > > The Amazon ECR plugin ( > https://wiki.jenkins-ci.org/display/JENKINS/Amazon+ECR) does not have an > appropriate

How do I delete job chains

2016-04-20 Thread Ioannis Moutsatsos
I have a pipeline of jobs each triggering downstream projects using the http://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Trigger+Plugin Lets say A->B->C I would like to remove a job A build and automatically cascade the delete to the corresponding B and C builds Is this possible. Any

Create Jira component 'amazon-ecr-plugin'

2016-04-20 Thread Marcus Wallin
Hi, The Amazon ECR plugin (https://wiki.jenkins-ci.org/display/JENKINS/Amazon+ECR) does not have an appropriate 'component' in Jira, which I need to be able to report an issue. Its 'Open Issues' have this link:

Re: Scheduled maintenance window April 15th - April 17th

2016-04-20 Thread R. Tyler Croy
(replies inline) On Wed, 20 Apr 2016, Irfan Sayed wrote: > Hello, > Is this done ? > Please let me know as i was waiting for updates to be happen on the wiki > pages. Sorry for the delayed response, I was finding a lot of gremlins in our previous update center generation process. As of this

Re: Amazon ECR Plugin not providing credentials for Docker Build & Push Plugin

2016-04-20 Thread A. Best
Just so that I can bring this thread to a proper conclusion, I worked out the issue. *TL;DR:* The Jenkins slave container derived from the jnlp-slave image (with the docker client installed) was using the *root* user instead of the *jenkins* user. This causes the ECR credentials to be

Re: Add credentials in pipeline script

2016-04-20 Thread Alex Domoradov
You could try something like this node { withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'mylogin', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) { sh ''' set +x curl -u $USERNAME:$PASSWORD https://private.server/ >

Re: How to distinguish which build trigger to kick off the build

2016-04-20 Thread Olli Sivonen
Hi, Jenkins generates environment variable BUILD_CAUSE for each build that contains the information you seek. The values are something like 'UPSTREAMTRIGGER', 'SCMTRIGGER', 'TIMERTRIGGER', and so forth. Also, if you have Conditional BuildStep Plugin

RE: How can we use a variable for E-mail Notification Recipients field of a job ?

2016-04-20 Thread Matthew.Webber
We use variables exactly as per your method (1), and it just works. Syntax is ${DAQ_MX_email_list}. You’re going to need to give us a bit more info about your configuration. What release of Jenkins are your running? Are you using the regular mailer, or the extended email plugin? Sorry to ask,

How can we use a variable for E-mail Notification Recipients field of a job ?

2016-04-20 Thread Erik Vande Velde
I tried the following: (1) define a global variable in Jenkins - Manage Jenkins - Configure system, and refer to it with ${mail_list} => the variable was not resolved (2) define properties in a local properties file, and access them from the EnvInject plugin => the variable is again unresolved

Re: Prevent Jenkins from deleting temp shell script for job

2016-04-20 Thread Ohad Schneider
set -x is the default but it's not ideal. When you have pipes and redirections it's hard to tell what's going on. A better solution would be to do something like cp $BASH_SOURCE /tmp/Jenkins/scripts To copy the currently executing script to some folder of your choosing (you could use mktemp but

Re: How to distinguish which build trigger to kick off the build

2016-04-20 Thread Baptiste Mathus
Hi, IIUC what you're talking about us actually called a "Cause" in Jenkins. Seems like https://wiki.jenkins-ci.org/display/JENKINS/Build+Cause+Run+Condition was designed to do what you want, but that plugin seems abandoned and is said to only implement the user cause. -- Baptiste Le 18 avr. 2016

Add credentials in pipeline script

2016-04-20 Thread Onno van der Straaten
Hi, I changed the example pipeline script a bit to test if it would work using Subversion. The repository that I want to use does not allow anonymous access. Is it possible to add credentials? Cheers, Onno node { // Mark the code checkout 'stage' stage 'Checkout' // Get some code

Good sources for Jenkins script library?

2016-04-20 Thread David Karlsen
I am currently investigating usage of Jenkins pipeline script library looking at https://jenkins.io/blog/2015/12/03/pipeline-as-code-with-multibranch-workflows-in-jenkins/ https://www.cloudbees.com/blog/jenkins-workflow-using-global-library-implement-re-usable-function-call-secured-http-endpoint

RE: How to 'Discard old builds' without running job?

2016-04-20 Thread David Aldrich
Hi Daniel Thanks for the link, we're struggling to set-up the keys, possibly because we are connecting to Jenkins from the same machine that it is running on. Anyway, we are perservering. I did find your statement confusing: >Use SSH key based authentication. Known bug with passwords when

Re: How many jobs can handle by Jenkins master?

2016-04-20 Thread Daniel Beck
> On 20.04.2016, at 10:05, dennys wrote: > > And does thread dump show CPU data? No, but it shows the code Jenkins is working on at that point in time and often gives hints wrt bottlenecks. -- You received this message because you are subscribed to the Google Groups

Re: How to 'Discard old builds' without running job?

2016-04-20 Thread Daniel Beck
> On 20.04.2016, at 09:40, David Aldrich wrote: > > Thanks for your reply. Could you please give me a pointer how to use SSH key > based authentication? I'm running the CLI on the Jenkins master - it is > accessing localhost.

Re: How many jobs can handle by Jenkins master

2016-04-20 Thread Baptiste Mathus
Thread dump shows what your Jenkins server is actually doing at the moment you're generating it. So it should be helpful to know what the server is doing during your unresponsive period. It's generally advisable to generate and save many thread dumps during the issue. Also possibly install and

Re: How many jobs can handle by Jenkins master?

2016-04-20 Thread dennys
Thanks for your reply. We don't build code on master, the executor is 0. And does thread dump show CPU data? I think it's for memory analysis (If I'm wrong, please let me know, thanks.) -- View this message in context:

Re: How to 'Discard old builds' without running job?

2016-04-20 Thread Alex Domoradov
You have to add public key at user profile page http://jenkins.example.net:8080/user/user_name/configure On Wednesday, April 20, 2016 at 10:40:23 AM UTC+3, David Aldrich wrote: > > Hi Daniel > > > Use SSH key based authentication. Known bug with passwords when anon > does > > not have read

RE: How to 'Discard old builds' without running job?

2016-04-20 Thread David Aldrich
Hi Daniel > Use SSH key based authentication. Known bug with passwords when anon does > not have read access to the job. Thanks for your reply. Could you please give me a pointer how to use SSH key based authentication? I'm running the CLI on the Jenkins master - it is accessing localhost.

Re: How many jobs can handle by Jenkins master?

2016-04-20 Thread Alex Domoradov
@Dennys Hsieh How many executors you have configured on the master node? On Wednesday, April 20, 2016 at 9:13:47 AM UTC+3, Daniel Beck wrote: > > Would be interesting to know what's the output of /threadDump when this is > going on. 18 builds is much less than Jenkins should be able to handle.

Re: How to 'Discard old builds' without running job?

2016-04-20 Thread Daniel Beck
> On 20.04.2016, at 08:23, Alex Domoradov wrote: > > Hmm, but he had used "--username=daldrich" That's my point. It doesn't work like it should. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this

Re: How to 'Discard old builds' without running job?

2016-04-20 Thread Alex Domoradov
Hmm, but he had used "--username=daldrich" On Tuesday, April 19, 2016 at 11:47:32 PM UTC+3, Daniel Beck wrote: > > > > On 19.04.2016, at 17:06, David Aldrich > wrote: > > > > Any idea why please? > > Use SSH key based authentication. Known bug with passwords when

Re: Scheduled maintenance window April 15th - April 17th

2016-04-20 Thread Irfan Sayed
Hello, Is this done ? Please let me know as i was waiting for updates to be happen on the wiki pages. Regards On Mon, Apr 18, 2016 at 4:26 PM, Kanstantsin Shautsou < kanstantsin@gmail.com> wrote: > So you started migration on Friday? ;-)) > > > On Monday, April 18, 2016 at 7:18:47 AM

Re: How many jobs can handle by Jenkins master?

2016-04-20 Thread Daniel Beck
Would be interesting to know what's the output of /threadDump when this is going on. 18 builds is much less than Jenkins should be able to handle. > On 20.04.2016, at 06:45, dennys wrote: > > We use 1 Jenkins and 30 Jenkins slaves. > (Jenkins master doesn't build code,