How to inject bash function to "execute bash" step for all jobs

2016-11-21 Thread stanley . shen
Hello, all I am having one bash function and I want to use it in all "execute bash" step. My Idea is that we can define the bash function in somewhere, and it can be inject to all "execute bash". Then I no need to do some manual work to load this function and I can use it directly. Is there

Re: How exactly does stash / unstash work AND how to use the same node in different stages

2016-11-21 Thread Vincent Brouillet
Stephen, We build a docker image in the first build stage and use it to spin up a temporary environment for automated testing with docker compose on jenkins nodes. We rely on docker save and stash: - docker save --output="./my-image.tar" image_name' - - stash includes:

subscribe

2016-11-21 Thread Ken Godoy
subscribe -- 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

Request for participation: Jenkins Security Officer candidates

2016-11-21 Thread R. Tyler Croy
First, let me thank Daniel Beck for his work as the inaugural Jenkins Security Officer over the past year. I would also like to thank the numerous members of the CERT[0] team who have helped Daniel guide the project's security policies, disclosures and updates. In accordance with our previously

Re: Getting build scripts into workspace. Which is best?

2016-11-21 Thread Ioannis Moutsatsos
If a script is shared among multiple projects and can be used as a build step I usually manage it through the Scriptler (https://wiki.jenkins-ci.org/display/JENKINS/Scriptler+Plugin) library. If a script is unique to a project I place it in a 'buildScripts' sub-folder of the specific Jenkins

[NEW] The Jenkins Job Configuration Analyzer

2016-11-21 Thread Ioannis Moutsatsos
Greetings to all; Check out the new git repository containing a Jenkins utility project that allows you to create a deep report of project configuration. https://github.com/imoutsatsos/Jenkins-JobConfigurationAnalyzer

Re: Declarative Piepline: conditional execution of stage/steps depending on branch

2016-11-21 Thread Andrew Bayer
Hi - In the latest release of Declarative Pipelines (0.6), we've got a new "when" section on stages to do exactly what you want - https://github.com/jenkinsci/pipeline-model-definition-plugin/wiki/Advanced#controlling-when-stages-execute A. On Wed, Oct 26, 2016 at 9:09 AM, Eddard

Re: Trigger from pipeline model definition plugin

2016-11-21 Thread Andrew Bayer
So the symbol on SCMTrigger was originally "scm", which turned out not to work in Pipeline due to overlapping with the auto-generated "scm" global variable. I changed the symbol to "pollScm" as of core Jenkins 2.22, but that means it won't work in Declarative on earlier core versions. In scripted

Re: JENKINS UNAUTHENTICATED REMOTE CODE EXECUTION

2016-11-21 Thread Aurelien Ryo
Hi Daniel, I created $JENKINS_HOME/init.groovy.d/cli-shutdown.groovy but it not works. Aurélien Le lundi 21 novembre 2016 17:30:22 UTC+1, Daniel Beck a écrit : > Repeating my previous response that I accidentally sent to you directly… > > > > > > > On 18.11.2016, at 17:04, Aurelien

Re: JENKINS UNAUTHENTICATED REMOTE CODE EXECUTION

2016-11-21 Thread Daniel Beck
Repeating my previous response that I accidentally sent to you directly… > > On 18.11.2016, at 17:04, Aurelien Ryo wrote: > > the full path of the script is > E:\build_server\jenkins\scriptler\scripts\cli-shutdown.groovy That's not the path you should use.

Ant Plugin doesn't seem to set ANT_HOME and PATH accordingly

2016-11-21 Thread Daniel P.
Hello everyone, My (probably relevant) setup: Solaris 11.3 JDK 1.8.0-102 Jenkins 2.32 Ant Plugin 1.4 I've setup a project which checks out some code and a build.xml for ant. This build.xml contains a target "prepare" that just creates some directories. I also let Jenkins handle my ant

Re: JENKINS UNAUTHENTICATED REMOTE CODE EXECUTION

2016-11-21 Thread Aurelien Ryo
Nobody have any idea ? Le jeudi 17 novembre 2016 17:53:20 UTC+1, Aurelien Ryo a écrit : > > Hello, > > We are using Jenkins as service on windows server (I'm was not agree...). > > I have followed process >

Re: Start up Jenkins from another Windows User Account

2016-11-21 Thread Andreas Hetz
Dear Jerome, thank you so much. Finally i was able to solve the problem. I followed you instruction and to set the JENKINS_HOME env made it. Feel free to contact me any time hetzandr...@gmail.com if you have questions about your Jenkins issues. Best, Andreas *CLOSED 2016-11-16 17:51

Re: Passing information between pipeline stages?

2016-11-21 Thread 'Björn Pedersen' via Jenkins Users
Hi, Would guess that this just a scope problem, see http://groovy.329449.n5.nabble.com/script-scoping-question-td355887.html for some more info. Björn -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop

Re: Jenkins "Issue Tracker" Unable to login(https://issues.jenkins-ci.org)

2016-11-21 Thread easonjim1919
Thank you very much for your reply I have modified my account to send message email address email:easonjim1...@gmail.com userid:easonjim On Monday, November 21, 2016 at 3:09:44 AM UTC+8, Daniel Beck wrote: > > > > On 20.11.2016, at 19:53, easonj...@gmail.com wrote: > > > > I am sure I have

Re: New Pipeline Maven plugin

2016-11-21 Thread Cyrille Le Clerc
Hello Sven, > Is it still under development? Is it production ready? Yes we are working at improving / enhancing it and yes we think it is production ready. There are already many users. > If I do not specify parameter jdk it will choose Java 7, which Jenkins has listed as JDK number 2. While

Re: New Pipeline Maven plugin

2016-11-21 Thread Sverre Moe
I am enquiring the status of Pipeline Maven Integration Plugin. https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Maven+Plugin Is it still under development? Is it production ready? Created by the Snippet Generator: withMaven(jdk: 'jdk1.8.0_102', maven: 'apache-maven-3.3.3', mavenLocalRepo:

Re: Unable to save Groovy script on EnvInject-Plugin

2016-11-21 Thread Yves Schumann
No ideas so far? 2016-11-18 13:27 GMT+01:00 Yves Schumann : > Hi @all, > > as a user I'm unable to save a Groovy script on the section "Evalutated > Groovy script" on Job config section of EnvInject-Plugin. If I do this as > Jenkins admin, it works as expected. Is this

Docker vs Docker-compose with Jenkins

2016-11-21 Thread 'Peter Teichner' via Jenkins Users
Hi All, I'm slightly unsure whether the topic is more suitable here or on Docker forums - anyway I decided to post it here. I have a pipeline whereby I have a job to build my Docker images using the Docker cloud plugin ( building 2-3 images at a time, application, db, proxy) In a separate job

Re: Build step 'Deploy WAR/EAR to WildFly' marked build as failure

2016-11-21 Thread kashif . rehman
Hy Des Gov, did you find any solution for this issue. ? On Wednesday, November 2, 2016 at 12:49:18 PM UTC+5, das gov wrote: > > Hi > > When I used WildFly Deployer Plugin 1.0.2 on Jenkins ver. 2.19.1 > I get error > > > [JENKINS] Archiving >

Re: No display name received from Xvfb within 10 seconds

2016-11-21 Thread mounir khamadja
Hello, Have you found a solution to your problem? I had the same problem but in a different context , i just increased the timeout of xvfb and it worked correctly. Regards, Mounir Le samedi 4 juin 2016 10:34:51 UTC+2, Giacomo Boccardo a écrit : > > Hi, >the following error occurs: > > >

Passing information between pipeline stages?

2016-11-21 Thread Bent Terp
Hi, trying to get started with pipelines and am having difficulties combining "input" and "stage" steps. Starting from this Cloudbees KB example

Example of a working pod with the kubernetes-ci plugin

2016-11-21 Thread Sébastien Douche
Hi folks, I try with the kubernetes-ci to create a pod with a container to do some work (get source code, compile it, etc) and a jnlp container (only used to connect to the Jenkins server). The goal is to avoid the adding of the jnlp binary into all my containers. So I tried this: