Re: [Jenkins World 2018] - Graders wanted

2018-04-13 Thread Michael Pailloncy
Hi Alyssa, I would be very happy to help. Cheers Michaël On Fri, Apr 13, 2018 at 6:09 PM, Alyssa Tong wrote: > Hello, > > I am looking for additional graders to join the Jenkins World (JW) review > committee to help grade Jenkins World 2018 SF & EU proposals. > > Time

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

2017-11-28 Thread Michael Pailloncy
Pipeline environment variables are not stored at the OS level. That's why you are not able to get them using *System.getenv() *(which only list OS level environment variables). But you should be able to retrieve them like any other classical environment variables : with the "${MyVar}" syntax

Re: Error with parallel pipeline

2017-11-20 Thread Michael Pailloncy
Can you share your Pipeline related plugins version please ? Originally using .each{} syntax was not working as expected, but it should be working on latest versions. Hopefully it helps. Le 17 nov. 2017 18:49, "Ramesh Bar" a écrit : > We are getting the below error with

Re: http_proxy is not taked in account in pipeline step env

2017-10-09 Thread Michael Pailloncy
Hey Aurélie, I've tested with this pipeline (derived from yours) and I'm not able to reproduce your issue : pipeline { agent any environment { http_proxy = 'http://xxx:xxx' TOTO='titi' } stages { stage('xxx') { when { expression { true } }

Re: Using params.item in agent docker section ...

2017-10-06 Thread Michael Pailloncy
Hi, To enable String interpolation, you need to use double quotes instead of simple quotes, otherwise variables are not resolved. Cheers 2017-10-06 7:53 GMT+02:00 Eric Tan : > Hi > > Is there a way to use parameters in the agent docker section like: > > pipeline { > >

Re: LDAP and systemctl jenkins restart

2017-10-04 Thread Michael Pailloncy
No, clearly it doesn't sound to be the way it should work :-) Do you see any error/exception inside Jenkins's logs when you save your LDAP configuration or during Jenkins startup ? Cheers 2017-10-03 15:55 GMT+02:00 Joaquin Henriquez < joaquin.henriq...@countercept.com>: > Hi ppl > > > > I

Re: Another CLI question

2017-10-04 Thread Michael Pailloncy
If you run this very same command directly on the Jenkins server and without reaching it through your reverse proxy, does it work ? I'm wondering if it's not related to the configuration of your reverse proxy. As described in this documentation

Re: How can i call global function defined in Jenkinsfile from inside the external groovy script loaded with 'load' step ?

2017-09-18 Thread Michael Pailloncy
IIC, this is a scope problem. To strictly answer to your question, you could convert the global function into a Closure and then pass it as parameter of *functionB*. I think something like that should work :

Re: Not able to see : Terraform Configuration option in "system configuration"

2017-09-07 Thread Michael Pailloncy
I think you are looking at the wrong place. All tools auto-installer configuration are located in the "Global Tool Configuration" page => ${JENKINS_URL}/configureTools/ Hopefully it helps :-) 2017-09-06 18:39 GMT+02:00 sanjay naikwadi : > Hi > > I have installed

Re: How to disable concurrent builds in a multibranch pipeline?

2017-09-01 Thread Michael Pailloncy
gant. Would be better if you could simply disable concurrent builds for > an entire multibranch pipeline. Maybe a Jira improvement request? > > On Friday, September 1, 2017 at 12:29:15 PM UTC-5, mpapo - Michael > Pailloncy wrote: >> >> You might be interested by this thread

Re: How to disable concurrent builds in a multibranch pipeline?

2017-09-01 Thread Michael Pailloncy
You might be interested by this thread :-) 2017-08-31 16:58 GMT+02:00 Dallas Clement : > I know how to disable concurrent builds for a particular branch.

Re: stop deployment when build fails while using ssh plugin

2017-09-01 Thread Michael Pailloncy
Not sure to understand your issue, could you give more details plz ? Do you have logs ? Just stopping the build is not enough ? 2017-09-01 4:30 GMT+02:00 pandiyan kaliaperumal : > Hi Friends, > > Need to know to stop the deployment, while using ssh plugin when build > gets

Re: Pass variable from 1 job to other job with seperate jenkinsfiles

2017-08-29 Thread Michael Pailloncy
Hey. IIUC, this should be possible. Can you show us the content of your Jenkinsfiles please ? 2017-08-29 21:07 GMT+02:00 Werner Dijkerman : > Hi, > > I have an issue and I don't get it to work. > > I have 2 Jenkinsfiles and thus 2 jobs. With the first Jenkinsfile I set an >

Re: Unable to get login page

2017-08-29 Thread Michael Pailloncy
Hey. Have you check Jenkins logs ? 2017-08-28 15:11 GMT+02:00 phanikumar : > Hello team, > > I have developed a custom plugin and uploaded it to my Jenkins server. Now > I > am unable to get the login page for Jenkins server. I even restarted my > entire physical

Re: Moving From Parameterized Trigger Plugin to Pipelines

2017-08-24 Thread Michael Pailloncy
Hello, To load a properties file, you can install this plugin : https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Utility+Steps+Plugin Then, you will have access to *readProperties* utility step. See https://github.com/jenkinsci/pipeline-utility-steps-plugin/blob/master/docs/STEPS.md for usage

Re: Multijob out of memory issues

2017-08-24 Thread Michael Pailloncy
The best to start here would be to try instructions on this page and analyze the resulting heapdump. 2017-08-24 8:08 GMT+02:00 Shashank Bhargav : > Hi All, > > We are facing serious out of memory

Re: How to group and sort tests and run in parallel without Parallel Test Executor Plugin

2017-08-14 Thread Michael Pailloncy
int j2 = 0; j2 < behatList[index_b].size() ; j2++) { > int index_b2=j2 > sh "./run_test ${behatList[index_b][index_b2]}" > } > } > } > } > parallel enviroments_b > } > ... > > > &

Re: How to prevent concurrent builds across all branches in a multibranch pipeline project?

2017-08-14 Thread Michael Pailloncy
Why do you want to prevent this ? Do you have a shared resource for all your builds ? If yes, I think that this plugin will fit your needs https://wiki.jenkins.io/display/JENKINS/Lockable+Resources+Plugin 2017-08-14 12:37 GMT+02:00 Mark Allison : > I have tried to use > >

Re: Accessing a variable in shell

2017-08-08 Thread Michael Pailloncy
Oh just realized that this for loop syntax exists even in Groovy :-) (I'm used to using *each *instead of for loops) But please try using C-style for loop syntax. 2017-08-08 14:45 GMT+02:00 Michael Pailloncy <michael.paillo...@gmail.com>: > This syntax doesn't exist in Groovy : *fo

Re: Accessing a variable in shell

2017-08-08 Thread Michael Pailloncy
This syntax doesn't exist in Groovy : *for (String repoName : repoList) { ... }* The direct equivalent is : *for (String repoName in repoList) { ... }* However, it's better to use the C-style for loop syntax when using pipeline (that's why I've used it in my previous example) : for (int i = 0; i

Re: Accessing a variable in shell

2017-08-08 Thread Michael Pailloncy
The for loop is in Java syntax instead of script shell syntax here : sh """ git clone -b master git@.com:/${repoName}.git cd ${repoName} stat -t . > folderStat1.txt for (String moduleName : moduleList) { ncu -u -f "${moduleName}" } stat -t . >

Re: Jenkins Pipelines defining steps and importing pipeline library library

2017-08-06 Thread Michael Pailloncy
In case of Shared Library classes definition, steps are not directly callable (it's not the case for steps declared inside *vars* directory). Can you can try something like : *src/acme/jenkins/Utils.groovy* package acme.jenkins class Utils { static def getGradleBinPath(script, version) {

Re: Help with NotSerializableException in pipeline

2017-08-06 Thread Michael Pailloncy
It seems like there are some variables used out of their scope and some misused Groovy methods. Here is a working version, IIUC your pipeline :-) #!groovy def behatList =['AutoSuiteSet_0', 'AutoSuiteSet_1', 'AutoSuiteSet_2', 'AutoSuiteSet_3', 'AutoSuiteSet_4', 'AutoSuiteSet_5'] def

Re: rsync failed: ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory

2017-08-06 Thread Michael Pailloncy
t; > On Sunday, August 6, 2017 at 10:53:41 AM UTC+3, mpapo - Michael Pailloncy > wrote: >> >> ssh is asking for the password or a passphrase if the key is invalid. >> Is-there a passphrase configured for this key ? Have you tried to connect >> directly using ssh from

Re: Jenkins Centralized Job Monitoring

2017-08-06 Thread Michael Pailloncy
I'm wondering why are you not considering Jenkins agents for now ? Usually, there is a Jenkins master which schedules and monitors job execution, and agents on which the build is executed. Through Jenkins UI, you can then get the build result/logs and know which was the agent used for the build.

Re: rsync failed: ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory

2017-08-06 Thread Michael Pailloncy
ssh is asking for the password or a passphrase if the key is invalid. Is-there a passphrase configured for this key ? Have you tried to connect directly using ssh from this machine to the target one ? BTW, how do you provide credentials ? 2017-08-06 9:28 GMT+02:00 Shiran :

Re: Remote Access API - REST API in Jenkins

2017-07-31 Thread Michael Pailloncy
lly it helps. 2017-07-31 3:44 GMT+02:00 Pradeep Patra <smilesonisa...@gmail.com>: > > > On Monday, July 31, 2017 at 7:21:08 AM UTC+8, mpapo - Michael Pailloncy > wrote: >> >> >>> I tried it and it is asking for mode? I am not sure what is the mode I >

Re: Remote Access API - REST API in Jenkins

2017-07-30 Thread Michael Pailloncy
> > > I tried it and it is asking for mode? I am not sure what is the mode I > should provide for creating new job. I tried passing mode=create and it > did not work. > Can you share the command line which you've tried please ? > >> However, what do you mean by "for creating jobs based on a

Re: The official docker image jenkins/jenkins:lts is missing ruby

2017-07-28 Thread Michael Pailloncy
+1 IMHO even if it's required maintenance, it would be a good idea to create and maintain your own image and store it on an internal repository for many reasons (lower coupling between your builds and the parent image, build reproducibility, better performance, and so on). 2017-07-27 21:12

Re: Remote Access API - REST API in Jenkins

2017-07-28 Thread Michael Pailloncy
Remote Access API is available directly, without need to install any plugin. By accessing *http://${YOUR_JENKINS}/api* url, you should be able to see a page listing different ways to interact with it (see "Create Job"). You have also a full example here

Re: Tracking build failure in the custom pipeline wrapper step

2017-07-19 Thread Michael Pailloncy
Hello, I think this question is more related to the jenkinsci-...@googlegroups.com mailing list instead of this one. You'll have better chance of result IMHO :-) 2017-07-19 10:18 GMT+02:00 Artyom Melnikov : > Hello. I am trying to create my own pipeline step plugin.

Re: [Pipeline] Mark single step/script as UNSTABLE

2017-07-19 Thread Michael Pailloncy
To my knowledge, it's not possible to change the result of a single step. However, you can check the result code of your script and then set the result of the entire pipeline to UNSTABLE using *returnStatus* parameter, available for *sh*, *powershell* and *bat* steps

Re: throttle() in declarative pipelines

2017-07-19 Thread Michael Pailloncy
Regarding the associated documentation , *throttle* is defined as a *step* and since you are using the declarative way, have you tried something like : pipeline { agent any stages {

Re: Jenkins Distributed Builds: Restricting users from configuring jobs with Jenkins Master's executors

2017-07-11 Thread Michael Pailloncy
By default, the master is configured with "Use this node as much as possible" : http://${JENKINS_URL}/computer/(master)/configure You can change this behavior with "Only build jobs with label expressions matching this node". In this way, the master can only be used if an explicit allocation (using

Re: Build time trend - Pipeline

2017-07-11 Thread Michael Pailloncy
Pipeline jobs are not limited to a specific agent, that's why this information is not displayed on the build time trend page. But as usual you are able to see on which agent a particular step has been executed on the build logs (Running on ... in /var/lib/jenkins/...), or by navigating to the

Re: Can I use the multibranch pipeline plugin that interacts with a user at a stage

2017-07-11 Thread Michael Pailloncy
stage ('test') { >>> steps { >>> echo 'test it.' >>> input 'Ready to go?' >>> } >>> } >>> >>> The problem we have now is that the build consumes one of the >>> executors. I guess I can farm that off somehow???

Re: Can I use the multibranch pipeline plugin that interacts with a user at a stage

2017-07-04 Thread Michael Pailloncy
017 09:34:51 UTC+1, paul b wrote: >> >> Brill. Thanks. I will look into it. >> >> On Tuesday, 4 July 2017 08:59:13 UTC+1, mpapo - Michael Pailloncy wrote: >>> >>> Yeah, seems like you want to use the *input* step (interaction through >>> Jenkins) : h

Re: Can I use the multibranch pipeline plugin that interacts with a user at a stage

2017-07-04 Thread Michael Pailloncy
Yeah, seems like you want to use the *input* step (interaction through Jenkins) : https://jenkins.io/doc/pipeline/steps/pipeline-input-step/ You can find a simple example here with some explanations :

Re: [blueocean] multi-platform builds with multi-stage completely parallel tracks

2017-07-03 Thread Michael Pailloncy
As far as I know, *stage* blocks inside parallel tasks are deprecated => see https://github.com/jenkinsci/pipeline-examples/blob/master/docs/BEST_PRACTICES.md#parallelism Have you tried something like : stage ("Setup") { parallel ( 'xenial': { node("xenial") {

Re: parameterised build which can set multiple values/variables from a choice

2017-07-03 Thread Michael Pailloncy
or > each environment(4 environments). Then with the 20 jobs for all the > components that would work out to be 80 jobs! Which seems excessive. > > On Sunday, 2 July 2017 13:49:15 UTC+1, mpapo - Michael Pailloncy wrote: >> >> Ok. >> IMHO, It would be better to avoid too much

Re: Can we construct a more complex slackSend notification?

2017-07-02 Thread Michael Pailloncy
ents": [ > { > "mrkdwn_in": ['text','pretext'], > "color": "#199515", > "text": "*$JOB_NAME:* <$BUILD_URL|Build #$BUILD_NUMBER>, > _microservice_ in _${clusterName}_ successfully updated.", >

Re: Pipeline job triggers another job twice

2017-07-02 Thread Michael Pailloncy
Not sure to fully understand. Can you share your Pipeline script please ? 2017-06-29 21:04 GMT+02:00 Venkata Burra : > Hi, > > > > I have a question regarding a pipeline job. > > > > I have Pipeline Job1, Pipeline Job2 and Pipeline Job3 jobs created in > Jenkins. The

Re: parameterised build which can set multiple values/variables from a choice

2017-07-02 Thread Michael Pailloncy
ers and ports. > > which I can then pass into my maven build like > mvn clean deploy -DSERVER=${server} -DPORT=${port} > > > On Friday, 30 June 2017 12:49:33 UTC+1, mpapo - Michael Pailloncy wrote: >> >> Have you tried this plugin https://wiki.jenkins.io >> /displa

Re: Can we construct a more complex slackSend notification?

2017-06-30 Thread Michael Pailloncy
Alternatively, you can create your own Pipeline method, a bit like this one : https://github.com/jenkinsci/pipeline-examples/blob/master/ pipeline-examples/slacknotify/slackNotify.groovy Since it's a simple curl, you can then directly use all the existing options/parameters offered by the Slack

Re: parameterised build which can set multiple values/variables from a choice

2017-06-30 Thread Michael Pailloncy
Have you tried this plugin https://wiki.jenkins.io/display/JENKINS/Extended+Choice+Parameter+plugin ? 2017-06-29 22:26 GMT+02:00 paul b : > Hi, > I wondered if it is possible to do a parameterised build which can set > multiple values. I would like to use the

Re: Git plugin issue in pipeline

2017-06-28 Thread Michael Pailloncy
Can you try with something like that inside your Jenkinsfile : node { deleteDir() checkout scm } Jenkins seems to be already able to retrieve your Jenkinsfile, so you don't need to give all SCM details inside it, see

Re: Trigger a job based on failure of another/upstream job

2017-06-28 Thread Michael Pailloncy
Are you using the Scripted or Declarative way to write your Pipeline ? If you are in Declarative mode, I think that you can easily do that with the *post *section => see https://jenkins.io/doc/book/pipeline/syntax#post 2017-06-28 7:06 GMT+02:00 Максим : > Hi! > Perhaps

Re: Trying to configure a RHEL7 slave yields a java.io.IOException: Illegal char in base64 code error

2017-06-26 Thread Michael Pailloncy
Do you use the same Java version on the master and agent ? Which version of Jenkins are you using ? 2017-06-26 20:17 GMT+02:00 t3knoid : > I am trying to add a RHEL7 slave in my existing configuration that is > using a Windows master. I am trying to use "Launch slave agents

Re: Jenkins 2.39 to 2.63

2017-06-17 Thread Michael Pailloncy
Not my case, but there is a trend of possible issues with community feedback of each weekly versions on the download page : https://jenkins.io/changelog/ Moreover, I would suggest you to install a LTS if you want a more stable version of Jenkins. 2017-06-17 7:52 GMT+02:00 Kishore RP

Re: Jenkins2 pileline poll scm

2017-03-05 Thread Michael Pailloncy
I need to install to enable this option? > > On Friday, March 3, 2017 at 6:05:12 PM UTC+2, mpapo - Michael Pailloncy > wrote: >> >> In the "Build Triggers" part inside your job configuration, you should >> have a "Periodically if not otherwise run" p

Re: Jenkins2 pileline poll scm

2017-03-03 Thread Michael Pailloncy
In the "Build Triggers" part inside your job configuration, you should have a "Periodically if not otherwise run" property. However, if you're able to configure webhooks on your SCM side to notify your master about new commits/branches and PR, it's a better approach :

Re: Upgrade Jenkins from 1.580 to 2.32.2

2017-02-26 Thread Michael Pailloncy
Few months ago, I've successfully upgraded from 1.6x to 2.x without any issue. But it depends on your configuration and installed plugins. Have a look at https://jenkins.io/doc/upgrade-guide/ and https://jenkins.io/changelog/ to get changelog details and upgrade specific instructions. But since

Re: Human submit after job

2016-12-14 Thread Michael Pailloncy
Are you using Jenkins Pipeline ? If yes, an "input" step exists to add a manual approval at any time during your workflow (or pipeline, as you want) : https://jenkins.io/doc/pipeline/steps/pipeline-input-step/#input-wait-for-interactive-input =>

Re: pipeline: it seems pipeline-build-step (build job) ignores node assignment

2016-12-14 Thread Michael Pailloncy
IIUC, it's a normal behaviour. The "build" pipeline step triggers the job job1 without any node "context" (a bit like if you trigger it manually), so the default label of job1 is used in this case. If you want to trigger job1 with a specific label, you should have a look to this plugin :

Re: Gerrit build with a default REFSPEC value?

2015-10-22 Thread mpapo - Michael Pailloncy
Hi, I think you can add "GERRIT_REFSPEC" parameter to this job (and all others needed parameters by your job) with a default value and it'll be overridden when triggered by a Gerrit event. But the GERRIT_REFSPEC parameter, and some others Gerrit's parameters will change on each changeset. Not

Questions about Heavy Job Plugin

2012-10-06 Thread mpapo - Michael Pailloncy
Hi all, I've questions about https://wiki.jenkins-ci.org/display/JENKINS/Heavy+Job+Plugin Configuration : - 1 node with 2 executors - 3 jobs with one taking 2 executors with this plugin If we run a first job taking one executor and a second taking two executors, the second is waiting

Re: How to use different SVN workspace version on a slave?

2012-08-03 Thread Michael Pailloncy
Le 03/08/2012 21:30, Fritz Elfert a écrit : I can't find any way to select the workspace version per slave Hi, I'm not sure to clearly understand what you want. If you have slaves with SVN 1.7 and slaves with 1.6 natively, you can add labels like svn1-6 to nodes with 1.6 version and svn1-7 to

Re: How to use different SVN workspace version on a slave?

2012-08-03 Thread Michael Pailloncy
Le 03/08/2012 22:44, Fritz Elfert a écrit : -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Michael, On 08/03/2012 10:00 PM, Michael Pailloncy wrote: Le 03/08/2012 21:30, Fritz Elfert a écrit : I can't find any way to select the workspace version per slave Hi, I'm not sure to clearly

Re: Create a pre-production environment for Jenkins

2012-06-12 Thread mpapo - Michael Pailloncy
11 juin 2012 23:09:29 UTC+2, LesMikesell a écrit : On Mon, Jun 11, 2012 at 2:54 PM, mpapo - Michael Pailloncy michael.paillo...@gmail.com wrote: nobody ever had this problematic ? I think most people do it the other way around. That is they build and test their test environment first

Create a pre-production environment for Jenkins

2012-06-11 Thread mpapo - Michael Pailloncy
Hi, Currently, my Jenkins is used very frequently by teams and it's dangerous to update it directly in the production environment. Do you have a specific methodology to update Jenkins before apply updates in the production environment ? I plan to run a Jenkins (with a specific user and http

Re: Create a pre-production environment for Jenkins

2012-06-11 Thread mpapo - Michael Pailloncy
nobody ever had this problematic ? Le lundi 11 juin 2012 14:32:32 UTC+2, mpapo - Michael Pailloncy a écrit : Hi, Currently, my Jenkins is used very frequently by teams and it's dangerous to update it directly in the production environment. Do you have a specific methodology to update