Re: How to mount volume in a docker job inside a dockerized jenkins

2016-05-18 Thread Nicolas Geraud
are /var/jenkins_home with jenkins master. > Then you can run some commands using $workspace as a valid path in both > containers : > > docker run --rm --volumes-from $(hostname) graviteeio/python3 python > ${WORKSPACE}/package_bundles.py > > 2016-05-18 10:34 GMT+02:00 Nicolas Gerau

Re: How to mount volume in a docker job inside a dockerized jenkins

2016-05-18 Thread Nicolas Geraud
ed the host path to be the exact same as the > jenkins container path, i.e. not use /opt/jenkins but /var/jenkins_home > on host > so `pwd` will resolve to some /var/jenkins_home/... subfolder that make > sense to be mounted from host into your side container > > 2016-05-18 10:14

How to mount volume in a docker job inside a dockerized jenkins

2016-05-18 Thread Nicolas Geraud
Hi all, i'm using a dockerized jenkins (from jenkinsci/jenkins:2.2) and mounting the following volumes from my host : volumes: - "/opt/jenkins:/var/jenkins_home" - "/var/run/docker.sock:/var/run/docker.sock" I've created a job that launch a docker container to build some python

Re: how to declare a Pipeline global var with named parameter

2016-05-13 Thread Nicolas Geraud
sh "${mvnCommamd.join(" ")}" } } } I can call it like this : mavenBuild() mavenBuild(branch:"master", url:"github...", mvnArgs: ["-X", "clean", "verify"] hope this can help. Le jeudi 12 mai 2016 23:47:41 UTC+2

how to declare a Pipeline global var with named parameter

2016-05-12 Thread Nicolas Geraud
Hi, I want to provide a global var on my brand new jenkins2 here is my function // workflowLibs/vars/mavenBuild def call(def url=null, def branch=null, def mvnArgs=["-U", "clean", "deploy"]) { boolean defaultScm = ( url == null || branch == null ) node { stage "Checkout"

Jenkins Pipeline Plugin : how to print stacktrace in a try/catch

2016-03-27 Thread Nicolas Geraud
Hi, i want to add a try/catch/finaly block in my pipeline script. try { println("Release ${components.size()} components in parallel : ${componentListToPrint} \n") parallel parallelBuild } catch(err) { echo "Exception thrown:\n ${err}" echo "Stacktrace:"

Re: Development environment for Pipeline (aka workflow)

2016-03-15 Thread Nicolas Geraud
I use intellij to write my groovy script I test my script with a local jenkins running on my laptop. I configure a workflow job that clone my local git repository. Le mardi 2 février 2016 23:14:54 UTC+1, Tom Kierzkowski a écrit : > > Hello! I'll try to break out the question in different

Re: Jenkins 2.0 alpha release available

2016-03-01 Thread Nicolas Geraud
Yes, I mean the tabs in the configuration pages. Too late to change, thanks for the reply. Le mardi 1 mars 2016 17:07:47 UTC+1, Kohsuke Kawaguchi a écrit : > > > > 2016-03-01 1:11 GMT-08:00 Nicolas Geraud <nicolas...@gmail.com > >: > >> I think that tabs shoul

Re: Jenkins 2.0 alpha release available

2016-03-01 Thread Nicolas Geraud
I think that tabs should be on a single row with left and right arrow to display hidden tabs like in https://www.google.com/design/spec/components/tabs.html#tabs-usage. Is this has been discussed elsewhere ? Le mardi 1 mars 2016 00:39:22 UTC+1, R Tyler Croy a écrit : > > As I mention in this