Re: Build and jump to console in one click?

2017-02-09 Thread Taro Fukunaga
Not aware of a plugin to do this, even in Jenkins 2.x.

You might want to try the Jenkins CLI.

https://jenkins.io/doc/book/managing/cli/

You can redirect the output to a log too.

2017年2月9日木曜日 6時33分07秒 UTC-8 maciej:
>
> Hi.
>
> Is it possible to build and jump to console in one click? Most of the 
> time when I build jobs I want to see what is going on (observe log).
>
> So is there some plugin that provides "Build and View Log" action. That 
> would be very handy. Or maybe something similar is available on Jenkins 2.x?
>
> Regards,
> Nux.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/485ca5a3-d4aa-4f1c-a78f-1133a6ea7320%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: slave tries to delete / after upgrading to LTS 2.32.2

2017-02-09 Thread Jifeng ZHANG
Thank you Mark and Daniel, for the ideas.

I was able to go through every job, since it is a new jenkins setup with
not that many jobs. _None_ of the jobs uses custom workspace at all.

I did find out in one of the jobs, when defining git advanced behaviour for
cloning in to a sub directory of current workspace, there is something like
"${NAMESPACE}/${PROJECT_NAME}". But this job has not been run during times
the problem happened. And even if this statement is evaluated to "/",
according to what is said in the tips popup, this will be relative to the
job's workspace.

I tried to correlate the time when the slave tried to delete "/" and the
time jobs were running on the same slave, there seems to be no correlation
between them at all.


-- 
Vänliga hälsningar/Best regards,
Jifeng Zhang

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAJGt1%3DCWYHBa29svEfY5Jrz3-eKUYbQSvHSEHJRZWUMz2HmW3A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: slave tries to delete / after upgrading to LTS 2.32.2

2017-02-09 Thread Daniel Beck

> On 09.02.2017, at 16:01, Jifeng Zhang  wrote:
> 
> We have went through the jobs and couldn't find any job with custom workspace 
> /.

Maybe a custom workspace like "${whatever}/" that is effectively / when 
"$whatever" doesn't exist? (Does custom workspace resolve build variables? Not 
sure right now, but in absence of better ideas…)


-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0BC900F4-410B-4AC1-8EC2-C62080DA238B%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: slave tries to delete / after upgrading to LTS 2.32.2

2017-02-09 Thread Mark Waite
The source code at that location

is trying to clear a workspace before it clones into it.

I like Daniel's suggestion to check for a job which has defined a custom
workspace explicitly as the root directory.  That seems the most likely
cause (to me).

You might also check to see if someone used a symbolic link in one of your
jobs and made that symoblic link point to the root directory.

Mark Waite

On Thu, Feb 9, 2017 at 8:01 AM Jifeng Zhang  wrote:

>
>
> On Thursday, February 9, 2017 at 3:27:44 PM UTC+1, Daniel Beck wrote:
>
>
> > On 09.02.2017, at 10:34, Jifeng Zhang  wrote:
> >
> > Any jenkins expert out there knows why this could happen and how to
> prevent it happening again? Right now it seems to happen every two days,
> removing everything it can under /.
>
> Is there a job with a custom workspace defined as / ?
>
> What version did you upgrade from? I assume it's _not_ 2.32.1?
>
>
> Well, it _was_ an upgrade from 2.32.1. We keep our jenkins update to date
> with LTS and it has never been a problem. Usually a few days after the
> official docker image is out, we would do an update.
>
> We have went through the jobs and couldn't find any job with custom
> workspace /.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/5944224d-ba61-474d-904e-c95d29f4cdf8%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHDubhxADDzmcbKxro%2BrZo6a5u2M%2BHzt%2BvYDbJ3wykkbw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


pipeline - copy file from s3 bucket example

2017-02-09 Thread ncvga . net
Hi,
I've installed s3copyartifact and S3BucketPublisher, i am trying to use 
s3copyartifact  but i can't find any example any where.

Lets say, on a earlier build (lets say build #23), i published an artifact 
to a s3 bucket, using this:

step([$class: 'S3BucketPublisher', entries: [[
sourceFile: "**/*.zip",
bucket: "my-builds",
selectedRegion: 'us-east-1',
noUploadOnFailure: true,
managedArtifacts: true,
flatten: true,
showDirectlyInBrowser: true,
keepForever: true,
]],
profileName: 'myprofile',
dontWaitForConcurrentBuildCompletion: false, 
])

On the next build, i want to download build's #23's zip file from bucket: 
'my-builds'. How do i do it? Please help

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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c629b4d6-4322-469f-9c85-4d0498101bb6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Expired Certificate

2017-02-09 Thread Daniel Beck

> On 09.02.2017, at 18:00, vrai...@redowl.com wrote:
> 
> Please be informed  updates.jenkins-ci.org certificate has expired

Known issue tracked as https://issues.jenkins-ci.org/browse/INFRA-1060

> we are not able to download latest plugin securely.


You might want to read https://issues.jenkins-ci.org/browse/INFRA-266

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/056F1FF6-E1B1-44BA-A00D-DDE7E45DE6A4%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Plugin search for locking resources

2017-02-09 Thread Ðavid Avrami


Hi,

 

I have been looking for some time now for a plugin that manage resources.

The closest plugin I have found to meet my requirements is the "Lockable 
Resources plugin 
" 
it's great 
but it only provides a lock on 1 label, What I need is to lock several 
resources from several pools (label is my pool type) - the 'several'

can be accomplished with the 'quantity' variable (but still it refers only 
for that 1 pool).

Locking resources by name is not going to work - not applicable.

 

Do you know any suitable plugin/pipeline script that will meet my criteria?

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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a9d210ed-e4bc-49c0-960c-571cecaa1272%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Expired Certificate

2017-02-09 Thread vraikar
Please be informed  updates.jenkins-ci.org certificate has expired and we 
are not able to download latest plugin securely.

-- 
*Important Notice:*  The information contained in or attached to this email 
message is confidential and proprietary information of RedOwl Analytics, 
Inc., and by opening this email or any attachment the recipient agrees to 
keep such information strictly confidential and not to use or disclose the 
information other than as expressly authorized by RedOwl Analytics, Inc. 
 If you are not the intended recipient, please be aware that any use, 
printing, copying, disclosure, dissemination, or the taking of any act in 
reliance on this communication or the information contained herein is 
strictly prohibited. If you think that you have received this email message 
in error, please delete it and notify the sender.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3bc330a5-35bf-4cdf-9386-839e12381a03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Issue with pipeline

2017-02-09 Thread jerome
the {workspace}@script is done during the initial fetch for the 
Jenkinsfile. Normally the pipeline checkout config. This first checkout is 
not transfer to the real workspace when you start the script


   1. the jenkinsfile checkout inside {workspace}@script. I strongly 
   suggest you get a small repos without the source code, else you will be 
   checkouting twice the source.
   2. read the jenkins file pipeline script inside {workspace}@script
   3. change the directory to {workspace}
   4. start executing the jenkinsfile inside {workspace}
   5. you pipeline script should scm checkout the real source code repos to 
   compile or do any other tasks

I for one would like to have an env variables to get that @script folder, 
since @script2+ is possible. I used some script helper to run the pipeline 
script which are found into the Jenkinsfile repos only. Right now I do 3 
checkout to ensure proper execution (I avoid refereing to 
{workspace}@script at all). 1 for the initial jenkinsfile into the @script, 
2 the jenkinsfile repos again for script helper into workspace which I can 
access and 3 the source code itself into workspace.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/22f3d61e-5b00-4d48-898f-71028be0a9c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins LTS and Docker 1.13

2017-02-09 Thread Omeka
Previously the current LTS of jenkins would not work with docker 1.12 
because of this 
issue https://github.com/maxfields2000/dockerjenkins_tutorial/issues/20
Has anyway here tested jenkins LTS with the Docker 1.13? 

Is there a way to get around the issue with another docker plugin?

On my setup we would to experiment with docker swarm mode which is a 1.12+ 
feature.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/dda0da4c-04f5-4042-9f14-92494e23ef3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: slave tries to delete / after upgrading to LTS 2.32.2

2017-02-09 Thread Jifeng Zhang


On Thursday, February 9, 2017 at 3:27:44 PM UTC+1, Daniel Beck wrote:
>
>
> > On 09.02.2017, at 10:34, Jifeng Zhang  
> wrote: 
> > 
> > Any jenkins expert out there knows why this could happen and how to 
> prevent it happening again? Right now it seems to happen every two days, 
> removing everything it can under /. 
>
> Is there a job with a custom workspace defined as / ? 
>
> What version did you upgrade from? I assume it's _not_ 2.32.1? 
>

Well, it _was_ an upgrade from 2.32.1. We keep our jenkins update to date 
with LTS and it has never been a problem. Usually a few days after the 
official docker image is out, we would do an update.

We have went through the jobs and couldn't find any job with custom 
workspace /.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5944224d-ba61-474d-904e-c95d29f4cdf8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Build and jump to console in one click?

2017-02-09 Thread 'Maciej Jaros' via Jenkins Users

Hi.

Is it possible to build and jump to console in one click?Most of the 
time when I build jobs I want to see what is going on (observe log).


So is there some plugin that provides "Build and View Log" action. That 
would be very handy. Or maybe something similar is available on Jenkins 2.x?


Regards,
Nux.

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d15f935e-35b7-033f-6b46-c80af7a75895%40mol.com.pl.
For more options, visit https://groups.google.com/d/optout.


Re: Issue with pipeline

2017-02-09 Thread Daniel Beck

> On 09.02.2017, at 03:17, Sharan Basappa  wrote:
> 
> But I would like to understand the reason behind having files in 
> {workspace}@script rather than {workspace} ...

The Jenkinsfile is checked out to @script so it's not in the actual workspace 
(duh), and you can e.g. deleteDir() to remove leftovers from previous builds 
without getting into problems (imagine a cartoon character sawing off the 
branch on which it sits…).

Did you forget to `checkout scm` inside the node block?

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/F90EA17C-C22B-47D7-9A32-783AAB0E4CF1%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: slave tries to delete / after upgrading to LTS 2.32.2

2017-02-09 Thread Daniel Beck

> On 09.02.2017, at 10:34, Jifeng Zhang  wrote:
> 
> Any jenkins expert out there knows why this could happen and how to prevent 
> it happening again? Right now it seems to happen every two days, removing 
> everything it can under /.

Is there a job with a custom workspace defined as / ?

What version did you upgrade from? I assume it's _not_ 2.32.1?

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4068405F-A450-4DF6-BFB5-D0A3FACA2AF9%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Force result change in Groovy

2017-02-09 Thread 'Maciej Jaros' via Jenkins Users

Daniel Beck (2017-02-08 16:01):

On 08.02.2017, at 15:48, 'Maciej Jaros' via Jenkins Users 
 wrote:

But that throws `cannot change build result while in COMPLETED`. So can I 
somehow force the result?

While there's probably a way to accomplish that, it's likely other things will 
break as a result of this as (obviously) Jenkins components don't expect build 
results to change after a build is finished.

This looks a lot like an X/Y problem kind of situation. What are you actually 
trying to accomplish?


The problem is the build in question should have failed as it is not 
functional (some artifacts don't work). Other jobs take artifacts from a 
last stable build from this job and deploy this to test (staging) 
server. So this works like so:

build job --stable artifacts--> deploy job --> test server

I ended up doing manual change which seems to work (at least in Jenkins 
1.x):


1. Go to `[jenkins-data]/jobs/[YOUR-job]/builds/[number]/`.
2. Open `build.xml`.
3. Find `` tag.
4. Change resolution to `UNSTABLE`.
5. Reload Jenkins configuration from disk.
6. Make sure `Last stable build (#[number])...` is correct (not the 
one you just changed).


And it seems to work (at least it works if artifacts wasn't removed for 
the older build).


Regards,
Nux.

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b1fdbaed-5911-a3e9-5303-6580b8430c4c%40mol.com.pl.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline Plugin: Multiple steps for ArtifactArchiver and JUnitResultArchiver in one pipeline possible?

2017-02-09 Thread ferruccio bongianni
Hello,
I'm having problems with collecting results from jobs run in parallel (as 
in pipeline 'parallel') as not all the test results gets collected; Can you 
explain what can go wrong and how to fix it?
Thanks
Ferruccio

On Friday, 20 May 2016 08:12:38 UTC+1, Lars Meynberg wrote:
>
> Ok it is possible to call JUnitResultArchiver more than once and all 
> recorded test results will be integrated. But to capture all results 
> accordingly you have to be careful about when to do it. Especially if 
> you're working with try/catch/finally. On some catches I was not at the 
> same node workspace anymore even all was in the same node step.
>
> Am Mittwoch, 18. Mai 2016 15:14:55 UTC+2 schrieb Lars Meynberg:
>>
>> We're trying to switch our Build Pipeline from the classic way (Multiple 
>> Jobs) to the new pipeline-as-code approach.
>> In the past we've chained some jobs together. We had some parallel test 
>> jobs and each test has produced its own test results. These results were 
>> copied to the master job and there aggregated and displayed.
>>
>> What is the best way to do this in a "real" pipeline? Can a call a 
>> JUnitResultArchiver step in each parallel Stage which has test results and 
>> the results will be combined or does it only displays the last recorded 
>> result? Do I have to do a similar aggregate task and 
>> call JUnitResultArchiver only once?
>>
>> I can imagine some of you have already resolved this issue as its a 
>> common one I would think.
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/429cf9d1-5f2f-4f3a-b615-7458b340eef6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to use the "when" closure to skip a stage (pipeline-model-definition-plugin)

2017-02-09 Thread Roi Aldaag
Thanks Tyler for your prompt response!

Just to make it clear -  the "when" clause is NOT supported in the Scripted 
Pipeline syntax and is only supported in the Declarative Pipeline 
Jenkinsfile? 
Is that explained anywhere in the documentation? Aren't those scripts 
interpreted eventually by the same engine?

I am aware that the Declarative pipeline should start with the pipeline 
outer block. The code that I have posted was for a scripted pipeline and I 
have stated that in my original post.

Thanks,

Roi


On Thursday, February 9, 2017 at 12:11:46 PM UTC+2, R Tyler Croy wrote:
>
> (replies inline) 
>
> On Thu, 09 Feb 2017, Roi Aldaag wrote: 
>
> > for a very simple pipeline in the inline pipeline editor (not in an 
> > external Jenkinsfile): 
> > 
> > *node {* 
> > *   stage('1') { // for display purposes* 
> > 
> > *   }* 
> > *   stage('2') {* 
> > *when {* 
> > *//return false* 
> > *}* 
> > *   }* 
> > *   stage('3') {* 
> > 
> > *   }* 
> > *}* 
>
>
> This Jenkinsfile is _not_ a Declarative Pipeline but is instead using the 
> Scripted Pipeline syntax. 
>
> A Declarative Pipeline *must* have a `pipeline { }` outer block, and a 
> number 
> of other required sections, and `when` is only applicable within 
> Declarative. 
> Otherwise you can just use normal Groovy conditionals. 
>
> See this document for more: https://jenkins.io/doc/book/pipeline/syntax/ 
>
> - R. Tyler Croy 
>
> -- 
>  Code:  
>   Chatter:  
>  xmpp: rty...@jabber.org  
>
>   % gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F 
> -- 
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/38a2f213-9acc-4101-b9c8-f588286eeb08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Problem with docker agent (declarative syntax)

2017-02-09 Thread Bartłomiej Kruczyk
Hi, I have problem with setting docker agent type for my pipeline.

Although something like this works:


agent {
docker 'myimage'

}


This does not:


agent {
docker {
image: 'myimage'

registry: 'localhost:5000'

}
}


As I'm getting error: 


org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: 3: Expected to find someKey "someValue" @ line 3, column 12.
   docker {
  ^

WorkflowScript: 3: Missing required parameter for agent type "docker": image @ 
line 3, column 5.
   docker {
   ^

2 errors

at 
org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
at 
org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1073)
at 
org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:591)
at 
org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:569)
at 
org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:546)
at 
groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
at 
org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:67)
at 
org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:429)
at 
org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:392)
at 
org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:221)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:404)
Finished: FAILURE

How I make it work?

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b01854b3-e9e2-49ba-ab4e-9b20bd8200dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Heat Orchestration Template (Hot) Player in Jenkins is empty due to a problem

2017-02-09 Thread kvimal0123


Hi,


I have jenkins configured on my windows box and I wanted to launch an 
openstack windows instance from Jenkins.


Can anyone please help me to configure Heat Orchestration loader settings 
correctly , so that I will get correct output from "Heat Orchestration 
Template (Hot) Player". Attaching the screenshot for reference.


Any help is much appreciated

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2d726077-1d32-44b7-ad6f-4a7c080d1845%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to use the "when" closure to skip a stage (pipeline-model-definition-plugin)

2017-02-09 Thread R. Tyler Croy
(replies inline)

On Thu, 09 Feb 2017, Roi Aldaag wrote:

> for a very simple pipeline in the inline pipeline editor (not in an 
> external Jenkinsfile):
> 
> *node {*
> *   stage('1') { // for display purposes*
> 
> *   }*
> *   stage('2') {*
> *when {*
> *//return false*
> *}*
> *   }*
> *   stage('3') {*
> 
> *   }*
> *}*


This Jenkinsfile is _not_ a Declarative Pipeline but is instead using the
Scripted Pipeline syntax.

A Declarative Pipeline *must* have a `pipeline { }` outer block, and a number
of other required sections, and `when` is only applicable within Declarative.
Otherwise you can just use normal Groovy conditionals.

See this document for more: https://jenkins.io/doc/book/pipeline/syntax/

- R. Tyler Croy

--
 Code: 
  Chatter: 
 xmpp: rty...@jabber.org

  % gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F
--

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/20170209101121.GA26439%40blackberry.coupleofllamas.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: Digital signature


Unable to use the "when" closure to skip a stage (pipeline-model-definition-plugin)

2017-02-09 Thread Roi Aldaag
After updating the last pipeline plugin 2.5 and dependent plugins on latest 
Jenkins 2.45 we are unable to use the "when" closure:

we get the following error:

*java.lang.NoSuchMethodError: No such DSL method 'when' found among steps [...]
at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:149)*



for a very simple pipeline in the inline pipeline editor (not in an 
external Jenkinsfile):

*node {*
*   stage('1') { // for display purposes*

*   }*
*   stage('2') {*
*when {*
*//return false*
*}*
*   }*
*   stage('3') {*

*   }*
*}*

Does the last release of pipeline-model-definition-plugin 1.0 include the 
support for the "when" closure in a stage?

Thank you in advance,

Roi

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5ca0fd0a-0124-44b7-b107-9040bbf20706%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: pipeline steps

2017-02-09 Thread Sekhar Kari
Yes, that's right. If any step fails the build is marked failed and would 
suspend.

On Thursday, February 9, 2017 at 7:49:34 AM UTC+5:30, Sharan Basappa wrote:
>
>
> I would like to know if I have multiple steps in my pipeline script and if 
> any one of the steps fails then subsequent steps would not be executed and 
> build would terminate.
> Is my understanding correct?
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/eb7e23e3-7b9d-4b7e-855e-b6d7deb571e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline - merge and push

2017-02-09 Thread Sekhar Kari
See if this helps

http://blogs.atlassian.com/2013/05/git-automatic-merges-with-server-side-hooks-for-the-win/

u may not be doing server side hooks, but u can write the similar script 
and invoke from pipeline.

On Thursday, February 9, 2017 at 11:31:48 AM UTC+5:30, Sharan Basappa wrote:
>
> The issues is, the files generated during testing cannot be predicted and 
> can keep changing. Also, even if I put them in Git ignore, how would 
> checkout still work as the files are still local to my repo branch? 
>
> On 9 Feb 2017 11:17 a.m., "Indra Gunawan (ingunawa)"  > wrote:
>
>> I would recommend that you include these files in a .gitignore so they 
>> are ignored by git.
>>
>>  
>>
>> -Indra
>>
>>  
>>
>> *From: * on behalf of Sharan 
>> Basappa 
>> *Reply-To: *"jenkins...@googlegroups.com " <
>> jenkins...@googlegroups.com >
>> *Date: *Wednesday, February 8, 2017 at 6:27 PM
>> *To: *Jenkins Users 
>> *Subject: *Pipeline - merge and push
>>
>>  
>>
>>  
>>
>> I have created a pipeline script. The pipeline script runs in a 'topic' 
>> branch (e.g. my_feature).
>>
>> Once test stage is successful, I would like to merge this into the master 
>> branch and then push the changes to remote.
>>
>>  
>>
>> However, I have some doubts. My test stage creates many intermediate 
>> files that would not be checked-in but are necessary for debug and analysis.
>>
>> So, in order to merge, I need to first checkout the master branch. Doing 
>> this creates issue as I have untracked files.
>>
>> But if I do git clean, I lose important log files that I might need for 
>> the next few days.
>>
>> How can I handle this? Would git stash help in this case?
>>
>>  
>>
>> 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 jenkinsci-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/e5b657d1-44c8-4445-b1e5-377e596ba94d%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Jenkins Users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/jenkinsci-users/NVBBXLVevnM/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> jenkinsci-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/63429949-127D-424B-9EBE-88B6A2C9E5F3%40cisco.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/322e98c9-2157-4b2a-b9c5-71012f9166e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


slave tries to delete / after upgrading to LTS 2.32.2

2017-02-09 Thread Jifeng Zhang
Hi,

We got a lot of following error msg from slave log after upgrading our 
Jenkins to 2.32.2, git-client to 2.2.1, git plugin to 3.0.1, scm api plugin 
to 2.0

Feb 09, 2017 7:19:42 AM hudson.Util makeWritable
INFO: Failed to chmod /
No directory specified for FileSet.
at 
org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:479)
at org.apache.tools.ant.taskdefs.ExecuteOn.runExec(ExecuteOn.java:370)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
at org.apache.tools.ant.taskdefs.Chmod.execute(Chmod.java:181)
at hudson.Util.makeWritable(Util.java:314)
at hudson.Util.tryOnceDeleteFile(Util.java:283)
at hudson.Util.tryOnceDeleteRecursive(Util.java:364)
at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:383)
at hudson.Util.deleteContentsRecursive(Util.java:223)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:455)
at 
org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:152)
at 
org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:145)
at hudson.remoting.UserRequest.perform(UserRequest.java:153)
at hudson.remoting.UserRequest.perform(UserRequest.java:50)
at hudson.remoting.Request$2.run(Request.java:336)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

It seems like jenkins slave or git client plugin tries to delete / 
recursively.

And there was no job running on this slave at the time these errors were 
logged. 

The result is a disaster, all files owned by the jenkins user were deleted, 
including its home directory.

Any jenkins expert out there knows why this could happen and how to prevent 
it happening again? Right now it seems to happen every two days, removing 
everything it can under /.

Best regards,

Jifeng Zhang



-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0b366539-51a5-480f-bc2f-73c46fea8f4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins updates site https certificate expired

2017-02-09 Thread 'Björn Pedersen' via Jenkins Users
Hi,

Already reported as:

https://issues.jenkins-ci.org/browse/INFRA-1060

Björn

Am Donnerstag, 9. Februar 2017 09:18:55 UTC+1 schrieb Mark Theunissen:
>
> Hi all,
>
> The site https://updates.jenkins-ci.org/ is serving an expired 
> certificate (as of yesterday), anyone know who to contact to get this 
> remedied? 
>
> Thanks
> Mark
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4bd59773-6f2b-4f67-91e8-bca2e2adfbd8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins updates site https certificate expired

2017-02-09 Thread Mark Theunissen
Hi all,

The site https://updates.jenkins-ci.org/ is serving an expired certificate 
(as of yesterday), anyone know who to contact to get this remedied? 

Thanks
Mark

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/13586e01-85b1-4ef5-9347-6b150704aa8f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Not able to generate coverage report from jenkins

2017-02-09 Thread Victor Martinez
Since it's a CloudBees Jenkins Enterprise version, have you tried to 
contact CloudBees support? They might help you to drive/solve this issue.

Cheers

On Thursday, 9 February 2017 04:24:16 UTC, Sukumar Reddy wrote:
>
> Hello All I am using
>  
> 1. Jenkins 
>Jenkins ver. 1.625.18.3 (CloudBees Jenkins Enterprise 15.11)
> 2. scoverage plugin: 
>SbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.0")
> 3. sbt version
> sbt-0.13.9
> 4. sbt settings:
>  [process_args] java_version = '1.8.0_111'
>  # Executing command line:
>   java
>  -Xms4096m 
>  -Xmx4096m
>  -XX:ReservedCodeCacheSize=512m
>  -XX:MaxMetaspaceSize=1024m
>  -jar
>
> when i issue sbt coverage test coverageReport from jenkins
> I am getting the below issue
> [info] [info] Beginning coverage instrumentation
> [info] [warn] Could not instrument [EmptyTree$/null]. No pos.
> [info] [warn] Could not instrument [EmptyTree$/null]. No pos.
> [info] [warn] Could not instrument [EmptyTree$/null]. No pos.
> [info] [warn] Could not instrument [EmptyTree$/null]. No pos.
>
> And the same if i try to do command line (linux) i am getting coverage
>
> Could any one help me here. Thanks in advance
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/95ab59f7-fd3d-4d2f-8756-5ca299aef173%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Any plugin can help display the status of multi jobs on multi nodes as matrix or table?

2017-02-09 Thread Reed Xia


Hi all,

My project is using Jenkins 1.568, we set up a few jobs, and each job run 
on 4~8 nodes, I want to have a table/matrix to show the real-time status of 
all status.

Something like following:




Could any plugin help on this? Or I have to develop one myself?

Thanks for all kind help!

Regards,
Reed

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/68060bf0-be73-4170-87d4-7034f6782dd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.