Jenkins and HA

2017-12-04 Thread Walter Heestermans
Hi, How can setup HA with Jenkins OpenSource? I have now one master running and two agents, can I just add a second master and put an LB in front of it. The Jenkins home of my current master is on shared file system. Regards walter -- You received this message because you are subscribed to

Re: Build Docker Image from a Dockerized Jenkins

2017-12-04 Thread 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 launch a container with the build. The images used need not be aware

Re: Build Docker Image from a Dockerized Jenkins

2017-12-04 Thread nicolas de loof
ok, so for this purpose you can rely on docker-plugin to create agents on-demand from configured docker images, or docker-slaves-plugin if you want this configured directly within your jobs, and docker-pipeline "inside" if you prefer Jenkinsfiles to setup CI/CD in jenkins. 2017-12-04 17:37

Re: HowTo set pipeline step description

2017-12-04 Thread Victor Martinez
As far as I know you don't need to do anything since the pipeline does it automatically: For instance, the below pipeline will be shown as the attached screenshot node('docker') { sh 'docker --version' sh 'docker info' }

Re: Env Inject failure "Couldn't find the right download for WINDOWS and i386 combination"

2017-12-04 Thread Steve K
Oh Yeah! Thanks @Daniel Beck & @Devin Nusbaum (sorry for referring to you as "David" in my previous post). For the JDK configuration, I just had to de-select "Install Automatically". I don't think we use the JDK anywhere, but, if someone comes screaming to me "Hey, where's my JDK", I'll deal

HowTo set pipeline step description

2017-12-04 Thread Gil Shinar
I have seen the following ticket [1] and all of it's duplicate tickets but haven't found any documentation on how to actually add the description to a pipeline step so it'll show what really happened and not just "shell script". Can someone please assist? [1]

Scenario for Jenkins Pipeline

2017-12-04 Thread addie k
Hey Group, I am new to Jenkins. We are creating a CI/CD pipeline and I had some basic questions. Following is my scenario: 1. Node project is cloned from Git repo and built. 2. The test cases are run and unit test code coverage report is generated 3. The artifacts are then to be used

Re: Env Inject failure "Couldn't find the right download for WINDOWS and i386 combination"

2017-12-04 Thread Daniel Beck
> On 4. Dec 2017, at 17:53, Steve K wrote: > > We're not using a JDK tool in our builds. > > This has become a huge pain. I can see from your link that Oracle is > probably to blame, but I don't see where I can change Jenkins' mind about > what JDK to look

Re: Translation between declaritive pipleline and groovy pipeline

2017-12-04 Thread jerome
You need to wrap your groovy code into a try/catch/finally block and check the current build result ( I also give you some hint when things are not yet filled) try { } catch(any) { println('Error occurred during build:'); println(any.toString()); println('Marking build as FAILURE because

Re: Translation between declaritive pipleline and groovy pipeline

2017-12-04 Thread Peter Berghold
Kool! Thanks! I suspected as much but now I full understand what's going on. On Mon, Dec 4, 2017 at 1:15 AM Ramanathan Muthaiah wrote: > What would be the equivalent of this: >> >> post { >> always { >> echo 'One way or another, I have finished' >>

Re: Env Inject failure "Couldn't find the right download for WINDOWS and i386 combination"

2017-12-04 Thread Steve K
Thanks @David Nusbaum Here's a trace from a test job that does nothing more than execute a `date /t` on the slave: Building remotely on ROCDVMSDK2x (SLAVE FTP_CLIENT) in workspace C:\Jenkins\workspace\z_date Installing JDK jdk-9.0.1-oth-JPR FATAL:

Re: Build Docker Image from a Dockerized Jenkins

2017-12-04 Thread Jeeva Chelladhurai
I would like to run my builds inside docker, so that I can manage different run times like node, python, go thru docker images. - Jeeva On Mon, Dec 4, 2017 at 5:51 PM, nicolas de loof wrote: > (another) plugin of mines. > Same design as docker-pipeline's

Re: About the Memory Consumption Issue of Jenkins

2017-12-04 Thread Artur Szostak
Jenkins is a Java application, and Java applications typically do not have a deterministic memory behaviour. You really cannot say anything with a single login/logout cycle. If you keep seeing the memory consumption increase after an extended period of time with many login/logout cycles, then

Re: How can I inject environment variables into my groovy class?

2017-12-04 Thread red 888
I guess it took longer than it should have to realize I was barking up the wrong tree, but let me explain why I wanted this. I'm using the AWS java sdk. The AWS sdk looks for these env vars and pulls them in for creds automatically if they are set in the current session. Of course you can pass

Re: Build Docker Image from a Dockerized Jenkins

2017-12-04 Thread nicolas de loof
(another) plugin of mines. Same design as docker-pipeline's "docker.inside" Can you please describe your use-case so we give better advise ? if you just want to "build Docker images" as your initial message told, then just run "docker build" within your job, what else ? 2017-12-04 13:15

Re: Build Docker Image from a Dockerized Jenkins

2017-12-04 Thread Jeeva Chelladhurai
Any thoughts on https://wiki.jenkins.io/display/JENKINS/CloudBees+Docker+Custom+Build+Environment+Plugin On Mon, Dec 4, 2017 at 12:04 PM, Jeeva Chelladhurai wrote: > > >> I have not tried this, so, cannot vouch for this. Please be cautious >> about the approach presented in

Re: trouble with Bitbucket Branch Source Plugin

2017-12-04 Thread i.ka...@betterfly-tourism.com
Hi, You need to add a credential with Bitbucket user/password. It's documented here: https://github.com/jenkinsci/credentials-plugin/blob/master/docs/user.adoc Ivan - Mail original - De: "itchymuzzle" À: "jenkinsci-users"