Re: Promote build when... option not shown in job config

2017-12-05 Thread Stephen Connolly
On Tue 5 Dec 2017 at 21:59, Chris White wrote: > Are there any requirements on a job for when the 'Promote build when...' > is shown / hidden for a job in Jenkins? > > I have the plugin installed (2.31), Jenkins has been restarted but for my > given job (a pipeline scm

Need Help Getting host name

2017-12-05 Thread LOKESH RAJU
Hi Team, I have a custom plugin which during the post-build phase needs the hostname/IP address of the node where the build is executing, build.getExecutor().getOwner().getNode().toComputer().getHostName() I have been using the above method, but it does not give me the right host name

Pip not able to run inside container if using extra index

2017-12-05 Thread barrett
The following does not work while running inside a container from a scripted Jenkinsfile. The operation simply hangs (or at least I should say I haven't waited long enough for it to timeout.) docker.image("container.jfrog.io/build-images/python:11.4.2").inside() { sh(" pip

Re: Scenario for Jenkins Pipeline

2017-12-05 Thread addie k
After waiting for a response I thought it is best to figure these things out by myself by trial and error. In the end I decided to go with using pipeline. Thanks a lot for the incredible help that I got here. Very helpful indeed. On Tuesday, December 5, 2017 at 4:55:39 AM UTC+11, addie k

Re: Defining *project level* environemnt variables

2017-12-05 Thread Brian Ray
Forgot to write: We mitigate the hack by wrapping it up as a global library custom step. On Tuesday, December 5, 2017 at 1:57:46 PM UTC-8, Brian Ray wrote: > > We use the Config File Provider plugin > and the Pipeline > Utilities Steps plugin

Promote build when... option not shown in job config

2017-12-05 Thread Chris White
Are there any requirements on a job for when the 'Promote build when...' is shown / hidden for a job in Jenkins? I have the plugin installed (2.31), Jenkins has been restarted but for my given job (a pipeline scm job) i don't see the option to configure the promotion process in the job

Re: Defining *project level* environemnt variables

2017-12-05 Thread Brian Ray
We use the Config File Provider plugin and the Pipeline Utilities Steps plugin in conjunction with folders to get around the JENKINS-42906 gap, in a Scripted Pipeline context. This is

java.lang.UnsupportedOperationException: Refusing to marshal org.codehaus.groovy.runtime.GStringImpl for security reasons

2017-12-05 Thread Peter Berghold
what on earth does that message mean? Here is the code this seems to be happening to: class Notifications implements Serializable { def context def dataBlocks def mailLists def workspace // emailext body: 'my email body', subject: 'email subject', to: 't...@test.dev',

Re: Build Docker Image from a Dockerized Jenkins

2017-12-05 Thread Jacob Larsen
On 2017-12-05 09:03, nicolas de loof wrote: 2017-12-04 21:38 GMT+01:00 Jacob Larsen >: Here is a list of the options I know, but one important aspect to this is if you use pipeline or not in your builds as that affects your choices:

Load groovy library of a given path

2017-12-05 Thread lidor . ettinger
Hi all, I'm trying to load groovy library but from a different path. In order to succeed to do that my repository should look like: *src*/usr/company/test.groovy The path should start with src as i read in the documentation. But that's not what i want. Is there another possibility to redirect

Re: Capture html just before an error execution?

2017-12-05 Thread Victor Martinez
Hi Ana, Can you please explain deeply what you are trying to achieve? I don't really understand what you need though, and what tech stack you are using atm Cheers -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this

Re: Capture html just before an error execution?

2017-12-05 Thread Ana MB
I've tried with: *screenCapture **/captura.png* But it did'nt work... El martes, 5 de diciembre de 2017, 13:34:37 (UTC+1), Ana MB escribió: > > I need some shell command to take a screenshoot and save in some > directory. > How could be that shell code? > > Thanks so much!! > > El martes, 5

Re: Capture html just before an error execution?

2017-12-05 Thread Ana MB
I need some shell command to take a screenshoot and save in some directory. How could be that shell code? Thanks so much!! El martes, 5 de diciembre de 2017, 13:24:27 (UTC+1), Ana MB escribió: > > Hi guys! > > Does anybody know how to capture the html/url before an error appear in > the test

Capture html just before an error execution?

2017-12-05 Thread Ana MB
Hi guys! Does anybody know how to capture the html/url before an error appear in the test case?? I need to know the previous URL, and I don't know how... Thanks so much for your help!!! -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To

Re: Translation between declaritive pipleline and groovy pipeline

2017-12-05 Thread Stephen Connolly
On 5 December 2017 at 09:30, Daniel Butler wrote: > If you use currentBuild.currentResult (was added a few months ago IIRC) > you get a value that will never be null. > but it may not be completely correct.

Re: Jenkins and HA

2017-12-05 Thread Victor Martinez
There is a plugin which I have never used but it might be relevant for this question: - https://wiki.jenkins.io/display/JENKINS/Gearman+Plugin Although, it seems it's developed by OpenStack and IIRC it was acquired a couple of years ago likely that's the reason no further development since

Re: Jenkins and HA

2017-12-05 Thread nicolas de loof
CloudBees HA is indeed based on active/passive master, there's no support for mutli-active-masters (yet, I don't know the roadmap for this) 2017-12-05 10:31 GMT+01:00 Walter Heestermans : > Are you saying that even with CloudBees you have active/passive masters, >

Re: Jenkins and HA

2017-12-05 Thread Walter Heestermans
Are you saying that even with CloudBees you have active/passive masters, but can you have multiple masters active too? Or is this not the setup of masters? Op dinsdag 5 december 2017 10:26:42 UTC+1 schreef nicolas de loof: > #disclaimer I'm working by CloudBees > CloudBees indeed has such a

RE: Translation between declaritive pipleline and groovy pipeline

2017-12-05 Thread Daniel Butler
If you use currentBuild.currentResult (was added a few months ago IIRC) you get a value that will never be null. From: jer...@bodycad.com Sent: 04 December 2017 17:06 To: Jenkins Users Subject: Re: Translation between declaritive pipleline and groovy pipeline You need to wrap your groovy code

Re: Jenkins and HA

2017-12-05 Thread nicolas de loof
#disclaimer I'm working by CloudBees CloudBees indeed has such a HA solution based on active/passive jenkins masters. I don't know if there's another mature alternative, haven't really searched for it nor tested. You might be interested by

Re: Jenkins and HA

2017-12-05 Thread Walter Heestermans
So, we have to go to solutions like CloudBees? Other solutions available for HA and to look at? Op dinsdag 5 december 2017 10:13:27 UTC+1 schreef nicolas de loof: > you can't do this way, two masters sharing same JENKINS_HOME would > override each other configuration on disk. Jenkins is

Re: Jenkins and HA

2017-12-05 Thread nicolas de loof
you can't do this way, two masters sharing same JENKINS_HOME would override each other configuration on disk. Jenkins is designed as a single-instance server. 2017-12-05 8:30 GMT+01:00 Walter Heestermans : > Hi, > > How can setup HA with Jenkins OpenSource? I have

Re: Build Docker Image from a Dockerized Jenkins

2017-12-05 Thread nicolas de loof
2017-12-04 21:38 GMT+01:00 Jacob Larsen : > Here is a list of the options I know, but one important aspect to this is > if you use pipeline or not in your builds as that affects your choices: > > Docker Custom Build Environment Plugin. This will use an existing executor > to