Re: Matrix Axis Labels Not Exposed to JUnit Plugin

2016-11-03 Thread Chris Wozny
Bumping. On Tuesday, October 25, 2016 at 6:35:07 PM UTC-4, Chris Wozny wrote: > > All, > > I am currently running the following setup: > > Jenkins 2.0 > ClearCase Plugin 1.6.2 > Multijob Plugin 1.21 > JUnit Plugin 1.6 > > I have a (crude example of a) matrix job in which each axis slave runs

Re: New version of Declarative Pipelines (pipeline-model-definition-plugin) released

2016-11-03 Thread James Dumay
Thanks Andrew for all your work to improve the ease-of-use for Pipeline! On Thursday, November 3, 2016 at 4:29:02 AM UTC+11, Andrew Bayer wrote: > > FYI - I've released version 0.5 of Declarative Pipelines today, and it > does have a significant syntax change that breaks compatibility with > ear

Getting build scripts into workspace. Which is best?

2016-11-03 Thread Trever
We have our build scripts in a git repository. Currently we have every one of our pipeline jobs check out the build scripts into the workspace directory in order to run the scripts. This works fine. While reading through some other Jenkins posts, I see that we could optionally have a job th

Jenkins configuration from script

2016-11-03 Thread Victor Martinez
Hi, You can use Https://wiki.jenkins-ci.org/display/JENKINS/Post-initialization+script and use jenkins internal api and its plugin with groovy Cheers -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop r

Re: DSL Script - Inject passwords to the build as environment variables

2016-11-03 Thread Victor Martinez
You can use the autogenerated dsl syntax if you are above 1.46 - https://github.com/jenkinsci/job-dsl-plugin/wiki/Automatically-Generated-DSL You can simplify a bit the configure closure with a more descriptive DSL Cheers -- You received this message because you are subscribed to the Google

Re: No workspace variable during workflow / pipeline build?

2016-11-03 Thread Jesse Glick
A subsequent plugin update does in fact define the environment variable `WORKSPACE`. But yes you could always use `pwd()` instead. -- 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

docker slave traceability question

2016-11-03 Thread jhavero
I've setup a docker slave using the Docker plugin. When the build runs it shows me the container id (114a23250a0c) : Started by user Building remotely on docker-114a23250a0c (docker-slave) in workspace /home/jenkins_slave/workspace/docker-test1 - How do I get it to outp

Re: Accessing the checked out sources when using GitHub Organization Folder plugin

2016-11-03 Thread Vincent Latombe
You can just use "checkout scm" where you need them. Vincent 2016-11-03 15:14 GMT+01:00 Ullrich Hafner : > When using the GitHub Organization Folder plug-in Jenkins checks out > automatically the sources of my project. However, in the corresponding > Jenkinsfile these sources are not visible, th

Re: DSL Script - Inject passwords to the build as environment variables

2016-11-03 Thread Angel Yanev
I got it to work like this : configure { def gblpass = it / 'buildWrappers' / 'EnvInjectPasswordWrapper' << { injectGlobalPasswords ('false') maskPasswordParameters ('true') passwo

Re: Iterate FileWrapper, fails with shell script within the loop

2016-11-03 Thread 'Björn Pedersen' via Jenkins Users
And of course in methods marked as NonCPS, you can not use jenkins steps (e.g. sh). Björn -- 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 jenkinsci-users+uns

Re: Iterate FileWrapper, fails with shell script within the loop

2016-11-03 Thread 'Björn Pedersen' via Jenkins Users
See https://github.com/jenkinsci/pipeline-examples/blob/master/docs/BEST_PRACTICES.md#groovy-gotchas Am Montag, 31. Oktober 2016 12:22:08 UTC+1 schrieb Sverre Moe: > > Problem looping through the result of findFiles. > The result from this method returns a > org.jenkinsci.plugins.pipeline.uti

Re: (SOAPUI- Jenkins Integration) Build just keeps on running...with no outcome

2016-11-03 Thread Christopher Valorose
Hi, We are seeing the same thing using SoapUI 5.2.1. 2016-11-03 11:37:37,641 INFO [SoapUI] Adding [C:\SoapUI-5.2.1\bin\ext\xml-resolver-1.2.jar] to extensions classpath 2016-11-03 11:37:37,642 INFO [SoapUI] Adding [C:\SoapUI-5.2.1\bin\ext\xmlbeans-xmlpublic-2.4.0.jar] to extensions classpath

Accessing the checked out sources when using GitHub Organization Folder plugin

2016-11-03 Thread Ullrich Hafner
When using the GitHub Organization Folder plug-in Jenkins checks out automatically the sources of my project. However, in the corresponding Jenkinsfile these sources are not visible, they are stored in a different workspace with suffix @script. My Jenkinsfile currently is just a simple maven c

Re: Jenkins is hanging

2016-11-03 Thread Rachel Moreno
Good morning! You're right! You made me think. I was wrong. If restarting wasn't allowed, that option shouldn't appear. But, if a service "dies", how can it start again? I've checked Jenkins' source code and it's considered (a separated process is created): core/src/main/java/hudson/lifecycle/

DSL Script - Inject passwords to the build as environment variables

2016-11-03 Thread Angel Yanev
Dear All, I am trying to create a DSL template job that will generate jobs with 'Inject passwords to the build as environment variables' option and a want to add a name and a value. Until now I have this : wrappers { environmentVariables { injectPassword

Jenkins configuration from script

2016-11-03 Thread Tomasz Szandała
Greetings All, I am working on new Jenkins usage model for my Team. My idea is to: 1. Create new cloud instance 2. Configure it and install Jenkins using Ansible 3. Configure Jenkins using some kind of script 4. Create and configure few projcts - I have them in DSL scripts currently. My problem is

How to downgrade Jenkins from 2.x to 1.x version in windows

2016-11-03 Thread MI
How could we downgrade to earlier version in case of something went wrong after upgraded to newer version of Jenkins? -- 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 ema

Re: New version of Declarative Pipelines (pipeline-model-definition-plugin) released

2016-11-03 Thread Daniel Beck
> On 02.11.2016, at 18:28, Andrew Bayer wrote: > > FYI - I've released version 0.5 of Declarative Pipelines today, and it does > have a significant syntax change that breaks compatibility with earlier > versions. See > https://github.com/jenkinsci/pipeline-model-definition-plugin/wiki/Version

How can I get my current stage name in the pipeline

2016-11-03 Thread Ron Keidar
Hi I'm writing a new Jenkins function and I would like to get the current stage name that is running right now on the pipeline. for example: stage("Stage1"){ def current_stage = getCurrentStageName() echo "I'm in satage: $current_stage" } -- You received this message because you are

Re: How can I find Java doc about class hudson.maven.MavenModuleSet ?

2016-11-03 Thread Want Lsb
Thank you 在 2016年11月3日星期四 UTC+8下午3:11:32,Indra Gunawan (ingunawa)写道: > > hudson.maven.MavenModuleSet is the “maven2/3 type” Jenkins job type. > > https://github.com/jenkinsci/maven-plugin/blob/master/src/main/java/hudson/maven/MavenModuleSet.java > > Historically the plugin was released alongside

Re: JobDSL : how to define build env var into a configuration class

2016-11-03 Thread JL 6BerYeti
Great ! Thanks a lot. It works ! But I hardly understand why it is so different than other confiugration such as ws cleaner or logrotator. Using the Job DSL playground, it appears that a little bit simpler code is possible by simply avoiding default config : def properties = project / 'propertie

Re: Jenkins is hanging

2016-11-03 Thread SGD53
Good morning Rachel, But what happens within Jenkins when updating the installed plugins and checking "restart Jenkins when done"? How can I avoid the hanging of Jenkins? Do I have to leave the checkbox "restart Jenkins when done" unchecked and restart the Windows service instead? Regards Mirk

Re: How can I find Java doc about class hudson.maven.MavenModuleSet ?

2016-11-03 Thread Indra Gunawan (ingunawa)
hudson.maven.MavenModuleSet is the "maven2/3 type" Jenkins job type. https://github.com/jenkinsci/maven-plugin/blob/master/src/main/java/hudson/maven/MavenModuleSet.java Historically the plugin was released alongside Jenkins core releases. Since release 2.0 this plugin is released separately.