Salt API returns TimeoutError on Jenkins Pipeline

2017-03-23 Thread Rustan Capal
Hi Everyone, Has anyone here encountered these errors before? [Pipeline] // withCredentials [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Deployment) [Pipeline] withCredentials [Pipeline] { [Pipeline] sh [staging-server] Running shell script + curl -sS 10.10.214.233:8181/run -H

Re: Declarative pipeline: access JenkinsLocationConfiguration.getAdminAddress()?

2017-03-23 Thread Jon Dufresne
Hi, Thanks for the response. I gave this a shot. It results in the following error: groovy.lang.MissingPropertyException: No such property: hudson for class: groovy.lang.Binding But I think the fix is to change hudson to jenkins. So I tried this and get the following results: org.jenkinsci.plug

Configuration Slicing for "Prepare SonarQube Scanner environment" check box?

2017-03-23 Thread Jeff
Hi all, I have hundreds of jobs that I need to check the "Prepare SonarQube Scanner environment" check box and was looking through the options on the Configuration Slicing plugin but other than "Custom workspace Slicer" I don't see any other options that might work. As for the Custom Workspace Sl

Re: Multiple pipelines in Jenkinsfile

2017-03-23 Thread Joshua Noble
Has anyone been able to make any progress on this? I have a new Jenkins 2 cluster up and running, and I've created declarative Jenkinsfile pipelines for each app repo. This works excellent for building all app branches and PR's. However, we have some more generic parameterized deploy jobs that

Re: Issues with SSH Host Key Verification

2017-03-23 Thread Harriet Severino
Can you ssh from master to slave and back as the jenkins user? If not look at you ssh setup. SSH is picky about the permissions of all the files under ~/.ssh. On Thursday, March 23, 2017 at 12:45:33 PM UTC-4, Harald Wellmann wrote: > > After upgrading to SSH Slave Plugin 1.15 on Jenkins 2.32.3,

Issues with deploying 'ecs-deploy' using Jenkins

2017-03-23 Thread jigar
Hi All, I am trying to integrate https://github.com/silinternational/ecs-deploy/tree/master with Jenkins to make deployment to ECS easier. By default Jenkins builds all project using user "jenkins". I have installed ecs-deploy using "jenkins" user and configured aws cli as well. Below is the s

Re: manually created config.xml and plugin version numbers

2017-03-23 Thread Adam Levine
Artur: Thank you for your response. Knowing that another project (thanks for the heads up on that one, too!) is working fine in the same manner gives me great comfort I won't be introducing any systemic problems. Thank you again! On Wednesday, March 22, 2017 at 6:33:43 AM UTC-5, Artur S

Issues with SSH Host Key Verification

2017-03-23 Thread Harald Wellmann
After upgrading to SSH Slave Plugin 1.15 on Jenkins 2.32.3, I'm getting warnings about missing SSH key verification which I'm trying to fix. I've configured Known hosts file verification strategy, I've manually ssh'ed from my master to my slave, and I've checked there's an entry in my .ssh/kno

Re: warnings plugin groovy script

2017-03-23 Thread Ewelina Wilkosz
I think you may need to use descriptor def warningDesc = Jenkins.getInstance().getDescriptor(hudson.plugins.warnings.WarningsPublisher) and then add the parser with it: warningDesc.addGroovyParser(RuboCop) Although I'm not 100% sure :) let me know when if you try that On Wednesday, March 22,

Jenkins LDAP and SSHA passwords

2017-03-23 Thread Maciej D
Hi Jenkins users! I'm trying to bind jenkins to LDAP auth. Jenkins is successfully downloading the user list. Unfortunately the credentials are wrong every-time I try to login with an valid account. My LDAP server stores salted sha (SSHA) in base64 for user passwords. Can jenkins detect i.e b

Re: Run pipeline only when new commits for a specific tag

2017-03-23 Thread Cuong Tran
Tags are mostly read-only, so I'm not sure what you're trying to do with "detect new commits" in specific tag. You can probably say "trigger builds for any new tag that matches tags/develop/*" and your tags have to be "develop/v1", "develop/v2", etc. On Thursday, March 23, 2017 at 2:45:05 AM U

Re: what is the max no of slaves you have added to jenkins master?

2017-03-23 Thread Stephen Connolly
1-200 is the range you can get to without having to *heavily* tune GC or change some Jenkins hidden properties. 2k is the number we have seen a couple of customers get to I suspect 4k is do-able with some constraints (i.e. all JNLP agents using JNLP4-plaintext (yes plaintext if you want that many

Re: what is the max no of slaves you have added to jenkins master?

2017-03-23 Thread Alejandro del Castillo
On 03/22/2017 07:05 PM, Stephen Connolly wrote: > If the hardware for the master is good enough and you are willing to > spend time tuning GC parameters... and your builds are not to chatty you > should be able to have 1k agents attached... with effort you can get to > 2k agents. > > I recommend

RE: HELP! Trying to Upgrade

2017-03-23 Thread Allen Fisher
Hi Daniel-- That was exactly the problem. Thanks for getting back to me.    Allen Fisher  www.helpsystems.com -Original Message- From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Daniel Beck Sent: Tuesday, March 21, 2017 4:55 PM To: jenkins

Re: How to skip a build after a "git push" done by a Jenkinsfile

2017-03-23 Thread Idan Adar
Could it be that this is the solution? http://stackoverflow.com/questions/42798006/how-to-disable-automatic-build-from-scm-change-in-jenkinsfile The flow in my case is: PR to GHE > GHE sends pull_request webhook to Jenkins > Jenkins uses the Jenkinsfile to run unit tests > Jenkins makes a call

Re: Multibranch Pipeline: Setting OrphanItemStrategy in Script Console

2017-03-23 Thread Sverre Moe
I can't believe I missed that. Thanks. torsdag 23. mars 2017 12.49.00 UTC+1 skrev Stephen Connolly følgende: > > you have misspelled the method and the error is telling you the correct > spelling... it's setOrphanedItemStrategy not setOprhanItemStrategy > -- You received this message because y

Re: How to skip a build after a "git push" done by a Jenkinsfile

2017-03-23 Thread Idan Adar
Unfortunately I am not versed enough in programming to add this functionality... I think that the workaround will add lots of "red rows" in the job view, because it first has to checkout the repo, check the messages and then abort... On Thursday, March 23, 2017 at 3:59:07 PM UTC+2, Mark Waite

keeping the pipeline stages visible on the dashboard

2017-03-23 Thread Richard Ginga
we have a pipeline that fails often enough that the last "successful" run gets pushed off the dashboard. this causes the later "stages" to also disappear from the view. How can I keep all stages visible in the pipeline view? -- Dick Ginga Build Engineer rgi...@disruptorbeam.com -- You received

Re: How to skip a build after a "git push" done by a Jenkinsfile

2017-03-23 Thread Mark Waite
The git plugin as used in pipeline doesn't support ignoring commits from certain users, or ignoring commits with certain messages. Until it does, you will probably need to "short circuit" and exit from the pipeline after using git commands to extract the latest commit message from the repository.

Re: How to skip a build after a "git push" done by a Jenkinsfile

2017-03-23 Thread Idan Adar
I should add that the job is of multibranch type. On Thursday, March 23, 2017 at 3:10:51 PM UTC+2, Idan Adar wrote: > > Hi all, > > In a declarative pipeline (a Jenkinsfile in the repo), how can I stop a > job from getting re/triggered due to a push event in GitHub? > For example: > > stage ("Pub

How to skip a build after a "git push" done by a Jenkinsfile

2017-03-23 Thread Idan Adar
Hi all, In a declarative pipeline (a Jenkinsfile in the repo), how can I stop a job from getting re/triggered due to a push event in GitHub? For example: stage ("Publish to npm") { steps { sh ''' npm publish npm --no-git-tag-version version minor '''

Re: Parameterized Job querying private Docker Registry like Maven Metadata Plugin?

2017-03-23 Thread Torsten Reinhard
see same question - already answered - at https://groups.google.com/a/dockerproject.org/forum/#!topic/distribution/btGC1x-lGq0 Am Donnerstag, 23. März 2017 11:58:29 UTC+1 schrieb Torsten Reinhard: > > Hi, > > I was successfully using > https://wiki.jenkins-ci.org/display/JENKINS/Maven+Metadata+P

Re: Multibranch Pipeline: Setting OrphanItemStrategy in Script Console

2017-03-23 Thread Stephen Connolly
you have misspelled the method and the error is telling you the correct spelling... it's setOrphanedItemStrategy not setOprhanItemStrategy -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails

Parameterized Job querying private Docker Registry like Maven Metadata Plugin?

2017-03-23 Thread Torsten Reinhard
Hi, I was successfully using https://wiki.jenkins-ci.org/display/JENKINS/Maven+Metadata+Plugin for adding build parameters to a Jenkins jobs as long as I built Maven artifacts that were deployed to Nexus. Now, we additionally need to build Docker images which will be pushed to a private Regis

Run pipeline only when new commits for a specific tag

2017-03-23 Thread Stefano Tranquillini
Hi all, i've a pipeline that runs for my code, now, I work with Bitbucket and I found a way to start the pipeline via the webhook, the problem is that it builds every push, which I don't want. What I would like is that it build everythime the tag "develop" is pushed to the remote and there are

Multibranch Pipeline: Setting OrphanItemStrategy in Script Console

2017-03-23 Thread Sverre Moe
I am trying to update a Multibranch pipeline project I have looked into the source code for ComputedFolder and DefaultOrphanedItemStrategy to find out how to set it. DefaultOrphanedItemStrategy extends OrphanedItemStrategy and takes inn a boolean,String,String parameter list. Running Jenkins 2.4

Plugin having no Pipeline support

2017-03-23 Thread Salman Patel
I would like to use some plugins which do not have Pipeline support. How will it be possible to invoke them through Pipeline Groovy script. One approach - I could see is Make a Job DSL script which will generate a new job with required plugin invocation and call this job as part of Pipeline scrip