[pipeline-model-definition] No such DSL method 'credentials'

2016-11-15 Thread Andreas Magnusson
Hi, I'm trying to convert our pipeline build to work with pipeline-model-definition, but have a problem. According to the docs (https://github.com/jenkinsci/pipeline-model-definition-plugin/blob/master/SYNTAX.md) I should be able to create a small example like this: pipeline { agent any

Login to Jenkins with Microsoft online account

2016-11-15 Thread Evan Greensmith
We're moving from Google accounts to Microsoft online accounts. Currently our Jenkins is setup to use the Google Login Plugin to allow 2-factor login using staff Google accounts (and Google Authenticator). We'd like to have a similar setup (with 2-factor auth) using staff Microsoft online

Re: How can I get my current stage name in the pipeline

2016-11-15 Thread ronkeidar12
Thanks allot Sent from my iPhone > On Nov 15, 2016, at 9:53 PM, Lee Meador wrote: > > Just inside the squiggle braces, set a variable. > >> stage("Stage1"){ >> def current_stage = "Stage1" >> echo "I'm in stage: $current_stage" >> } > > >> On Thu, Nov 3, 2016 at 4:17

ssh-agent + checkout scm

2016-11-15 Thread Sébastien Rainville
Hi, I haven't been able to get ssh-agent and checkout scm to work together, e.g.: node('slave') { sshagent (credentials: ['master-credentials']) { checkout scm } } For some reason the ssh-agent is stopped before the checkout is executed: [Pipeline] node Running on ... (truncated)

Re: How to emit XML in Jenkinsfile, and documentation on all Jenkinsfile restrictions?

2016-11-15 Thread David Karr
On Tuesday, November 15, 2016 at 12:32:44 PM UTC-8, Daniel Beck wrote: > > > > On 15.11.2016, at 17:29, David Karr > wrote: > > > > I also need better understanding of the overall restrictions in a > Jenkinsfile, and perhaps WHY those restrictions are there. > >

Re: Bitbucket webhook triggering 2 builds at once

2016-11-15 Thread Tim Webster
Hi, OK thanks for the info - will keep all this in mind. You've been very helpful. Thanks again, Tim On Tue, Nov 15, 2016 at 6:42 PM, Michael Kobit wrote: > We use PR builds and notifications pretty heavily, so that is a very > useful feature for us. If you use the normal

Re: Jenkins Rest API guide

2016-11-15 Thread Daniel Beck
Well, why should the wiki repeat what Jenkins tells you already? It explains how to get information about a build: > Or if you want to access information about a particular build, e.g. …, then > go to …/api/ and you'll see the list of functionalities for that build. On that page in Jenkins,

Re: How to emit XML in Jenkinsfile, and documentation on all Jenkinsfile restrictions?

2016-11-15 Thread Daniel Beck
> On 15.11.2016, at 17:29, David Karr wrote: > > I also need better understanding of the overall restrictions in a > Jenkinsfile, and perhaps WHY those restrictions are there. http://groovy-sandbox.kohsuke.org/

Re: Tmp+Cleaner+Plugin

2016-11-15 Thread Daniel Beck
> On 15.11.2016, at 08:18, Patricio Iglesias wrote: > > The only thing i can find is: "TODO : configure it with the ui." > > But i am unable to find any options in jenkins user interface. Any ideas? > "TODO : configure it with the ui" means that it's not possible. The

Re: Trouble using MarkupBuilder DSL within Pipeline DSL

2016-11-15 Thread David Karr
On Tuesday, November 15, 2016 at 9:24:48 AM UTC-8, David Karr wrote: > > In my Jenkinsfile, I'm trying to use MarkupBuilder to construct a simple > XML message. I first discovered that there are default security > restrictions preventing the use of this class, which I was able to override. > >

Re: Jenkins Rest API guide

2016-11-15 Thread Lee Meador
I hope Gustavo finds that more helpful than I did. Its pretty obscure how to do any particular thing but the notes covering how to access the api are pretty thorough. On Wed, Nov 2, 2016 at 5:09 PM, Rachel Moreno < raquel.moreno.carm...@gmail.com> wrote: > Hi Gustavo, > > Take a look at this

Re: "more SCM polling activities scheduled than handled..."

2016-11-15 Thread Josh Santangelo
Setting it to 100 and restarting didn’t change the behavior. At the moment I have nine jobs hung with he same error log as below. The fact that git is timing out is clearly a BitBucket issue (maybe they think I’m DOSing them) but Jenkins should recover from it correctly. -- S T I M U L Λ N T

Re: How can I get my current stage name in the pipeline

2016-11-15 Thread Lee Meador
Just inside the squiggle braces, set a variable. stage("Stage1"){ > def current_stage = "Stage1" echo "I'm in stage: $current_stage" > } On Thu, Nov 3, 2016 at 4:17 AM, Ron Keidar wrote: > Hi > I'm writing a new Jenkins function and I would like to get the current >

Re: Getting build scripts into workspace. Which is best?

2016-11-15 Thread Lee Meador
Its the usual things: * If you have one copy of those scripts and fix something in one of them, all the jobs get the fix. * If you have one copy of those scripts and break something in one of them, all the jobs get broken. * you are free to add variations On Thu, Nov 3, 2016 at 2:47 PM, Trever

Re: how to reliably installing plugins?

2016-11-15 Thread Rui Lopes
I was able to workaround this... https://github.com/rgl/jenkins-vagrant/commit/c032bdfcefee9472b1269f681844808287323356 Essentially, I had to keep reinstalling the plugins (and restarting jenkins) until their installation succeeded. If you have a better solution, please speak up! -- You

Re: Bitbucket webhook triggering 2 builds at once

2016-11-15 Thread Michael Kobit
We use PR builds and notifications pretty heavily, so that is a very useful feature for us. If you use the normal Multibranch features, you have to either write your own code (global library is what we did this before BBBS was available for Bitbucket Server) or use a plugin with a step. Another

Re: Bitbucket webhook triggering 2 builds at once

2016-11-15 Thread Tim Webster
Hi, Bear with me here - I'm not too worried about PRs right now (although I may in the future), but doesn't the 'regular' multibranch pipeline plugin already give you automatic branch indexing/builds? What does BBBS give you that it doesn't (or is it just the PR stuff)? I would like to choose a

Re: test msg

2016-11-15 Thread Mark Waite
Got it On Tue, Nov 15, 2016, 10:38 AM Richard Ginga wrote: > just checking that I joined this mailing list correctly > > anyone respond? > > thanks > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To

Re: Trouble using MarkupBuilder DSL within Pipeline DSL

2016-11-15 Thread David Karr
On Tuesday, November 15, 2016 at 9:24:48 AM UTC-8, David Karr wrote: > > In my Jenkinsfile, I'm trying to use MarkupBuilder to construct a simple > XML message. I first discovered that there are default security > restrictions preventing the use of this class, which I was able to override. > >

test msg

2016-11-15 Thread Richard Ginga
just checking that I joined this mailing list correctly anyone respond? thanks -- 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, send an email to

Trouble using MarkupBuilder DSL within Pipeline DSL

2016-11-15 Thread David Karr
In my Jenkinsfile, I'm trying to use MarkupBuilder to construct a simple XML message. I first discovered that there are default security restrictions preventing the use of this class, which I was able to override. Next, I'm seeing errors that make it seem like the "methodMissing" calls for XML

Re: Slave Jenkins on an RHEL box

2016-11-15 Thread Fritz Elfert
On 15.11.2016 17:26, Fritz Elfert wrote: > most likely somewhere else than with *your* user account. Therefore do > the following on your jenkins master: > > 1. sudo -i > 2. su - jenkins >(or whatever your jenkins user is named on the master) > 3. ssh rhelhost >(or ssh otheruser@hrelhost

How to emit XML in Jenkinsfile, and documentation on all Jenkinsfile restrictions?

2016-11-15 Thread David Karr
I'm stepping through implementing required features for our build in a Pipeline job. I've been hitting restrictions on what I can do with Groovy in a Jenkinsfile. Right now, I can't figure out how to just emit valid XML. When I try to use MarkupBuilder, it tells me that I can't use "new

Re: Slave Jenkins on an RHEL box

2016-11-15 Thread Fritz Elfert
On 15.11.2016 15:14, Peter Berghold wrote: > wish that were the case. Nope: running the same command from the > command line yields the results I'm after. Since the script runs as > tomcat8 and tomcat8 is trusted between the hosts I'm at a complete loss > as to why this is happening. Really?

Re: pipeline groovy - can somebody please explain why variable value passing is working like this?

2016-11-15 Thread Lee Meador
I think he is saying to put the path part preceeding the file name inside the parentheses on the @Library annotation On Mon, Nov 14, 2016 at 5:15 AM, Jonathan Hodgson wrote: > I'm sorry, but am I supposed to know what that means? > > On Monday, November 14, 2016 at

Re: Parallel job execution using Jenkinsfile and slaves

2016-11-15 Thread Lee Meador
Its not clear to me what you are asking. For example, if there are 4 executors on one slave and 4 on the other one, the parallel branches might run on different slaves or they might run on the same slave but different executors. I set the number of executors equal to the number of cpus (or number

Re: Bitbucket webhook triggering 2 builds at once

2016-11-15 Thread Michael Kobit
Sorry, I replied without understanding the full message entirely. We still use that plugin with the Multibranch job type in some places but have been transitioning to using https://wiki.jenkins-ci.org/display/JENKINS/Bitbucket+Branch+Source+Plugin . The Bitbucket plugin you previously mentioned

how to copy the jenkins job from one jenkins instance to another jenkins instance job import plugin is not working for me

2016-11-15 Thread Victor Martinez
You can find some details in StackOverflow http://stackoverflow.com/questions/9038748/how-do-i-copy-a-job-from-one-instance-to-another Cheers -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving

Re: Slave Jenkins on an RHEL box

2016-11-15 Thread Dirk Heinrichs
Am 14.11.2016 um 17:28 schrieb Peter Berghold: > [11/14/16 16:22:37] Launching agent > $ /usr/share/tomcat8/startSlave0 > Host key verification failed. There's a problem with the host key of the slave. This usually means that the SSH server (your Jenkins slave) offers a different host key than

Re: Slave Jenkins on an RHEL box

2016-11-15 Thread Peter Berghold
wish that were the case. Nope: running the same command from the command line yields the results I'm after. Since the script runs as tomcat8 and tomcat8 is trusted between the hosts I'm at a complete loss as to why this is happening. On Mon, Nov 14, 2016 at 5:45 PM Donald Morton

Re: Global "disable triggers" options

2016-11-15 Thread Ted Xiao
We run groovy script to remove timer trigger or other triggers, sample code import hudson.model.* import hudson.triggers.* import jenkins.model.* import com.cloudbees.hudson.plugins.folder.Folder def TIMER_TRIGGER_DESCRIPTOR = Hudson.instance.getDescriptorOrDie(TimerTrigger.class) def

how to copy the jenkins job from one jenkins instance to another jenkins instance job import plugin is not working for me

2016-11-15 Thread venkat bumi
how to copy the jenkins job from one jenkins instance to another jenkins instance job import plugin is not working for me -- 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, send

Re: Reset password on accounts.jenkins.io , but password not recognised on issues.jenkins-ci.org

2016-11-15 Thread Asfand Yar Qazi
Hi, Can anyone help me with this, or direct me to someone who can? Thanks On Monday, 14 November 2016 17:01:01 UTC, Asfand Yar Qazi wrote: > > Hello, > > I have an old account on jenkins-ci.org . I tried resetting the password, > was redirected to jenkins.io , where I successfully changed my

Re: Multibranch Pipeline trigger

2016-11-15 Thread Thomas Keller
Ok, I figured it out myself. Several issues on my side: 1) In order to get the upstream trigger set up, the dependent project needs to be run at least once, otherwise Jenkins obviously does not know anything about the trigger in first place. 2) Absolute project references of course need to

Re: Pipeline: Multiproject repository

2016-11-15 Thread Thomas Keller
Multibranch pipelines are really only suitable for single-project multi-branch repos. The farest I got with a multi-project setup was using the Jenkins Repo Plugin (for the Google Repo Tool), but this would reverse the use case you're looking for: It pings all subprojects / subrepos and kicks

Run jenkins as a service and users rights

2016-11-15 Thread Nicolas M
Hello, I have installed a new Jenkins 2 as a service, and configured it to run as user Admin through windows service manager. This helped me fixing some SVN checkout problems, however I cannot restart Jenkins automatically any more via the url http://myjenkins/restart I've got this permission