Re: declarative pipeline - gradle build tool not working

2017-02-15 Thread Indra Gunawan (ingunawa)
What is “GRADLE_LATEST”? You need to go Jenkins and install Gradle Plugin then add Gradle to the tool in Jenkins 2.x: Go to Manage Jenkins -> Global Tool Configuration -> Gradle Installation; In Jenkins 1.x: Go to Manage Jenkins -> Configure System -> Gradle For a Gradle version you install

Re: Not able to trigger remote parameterized build (Found 403 error)

2017-02-15 Thread Sagar Khalasi
Hi, I have found solution but using different plugin and some more configuration. https://wiki.jenkins-ci.org/display/JENKINS/SiteMonitor+Plugin *Install above plugin in Jenkins 1.* *Here I have convert my remote Jenkins (Jenkins 2) machine to public IP. I can use it as website or server.*

declarative pipeline - gradle build tool not working

2017-02-15 Thread Bill Dennis
Hi - I'm looking to use gradle to run tests in declarative pipeline jobs. Looking at docs here under tools I should be able to spec a gradle tool in the tools section: https://jenkins.io/doc/book/pipeline/syntax/#declarative-steps So I created a job like this: pipeline { agent any

Re: environment variables not getting set

2017-02-15 Thread Sharan Basappa
Mark, I think you are referring to point 9 of the article. But that's not I am looking for. We already have environment variables in our .bashrc/.cshrc and there are a quite few of them. So, ideally, we would like to re-use these instead of adding all these variables in Jenkins or in my

Re: Reset build ID

2017-02-15 Thread Daniel Beck
> On 15.02.2017, at 21:51, tarocara...@gmail.com wrote: > > Is it possible to reset the build ID? I believe there's a plugin to increase > the build ID, but not to reset it to a lower number. It might be a useful > feature to be reset it when starting a new release of a product. Build

Re: Parallel in Declarative Pipeline

2017-02-15 Thread 'pbeatty' via Jenkins Users
I can point you to this link on Jenkins.io that describes the declarative style and scripting style for Jenkinsfile pipeline. https://jenkins.io/doc/book/pipeline/jenkinsfile/ On Wednesday, February 15, 2017 at 3:53:58 PM UTC-5, taroc...@gmail.com wrote: > > What's declarative syntax? > > On

Re: Parallel in Declarative Pipeline

2017-02-15 Thread tarocaravan
What's declarative syntax? On Wednesday, February 15, 2017 at 11:48:22 AM UTC-8, pbeatty wrote: > > Is "parallel" valid to use in declarative Jenkinfile syntax or is it only > availabl Scripting syntax? > > Pat > -- You received this message because you are subscribed to the Google Groups

Re: Reset build ID

2017-02-15 Thread Richard Ginga
Nope, can not reset the build number. it is too ingrained into Jenkins On Wed, Feb 15, 2017 at 3:51 PM, wrote: > Is it possible to reset the build ID? I believe there's a plugin to > increase the build ID, but not to reset it to a lower number. It might be a > useful

Reset build ID

2017-02-15 Thread tarocaravan
Is it possible to reset the build ID? I believe there's a plugin to increase the build ID, but not to reset it to a lower number. It might be a useful feature to be reset it when starting a new release of a product. -- You received this message because you are subscribed to the Google Groups

Using agent dockerfile AND label in a declarative pipeline

2017-02-15 Thread Damien Coraboeuf
Hi, I'm starting to migrate some projects to the declarative pipeline model. In particular, we want to build on an agent designated by the "docker" label (which runs a Docker daemon) and then, I want to build inside a Docker container described by my Dockerfile. Doing this: pipeline {

Parallel in Declarative Pipeline

2017-02-15 Thread 'pbeatty' via Jenkins Users
Is "parallel" valid to use in declarative Jenkinfile syntax or is it only availabl Scripting syntax? Pat -- 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

Re: environment variables not getting set

2017-02-15 Thread Mark Waite
Refer to item 9 at https://www.cloudbees.com/blog/top-10-best-practices-jenkins-pipeline-plugin . Mark Waite On Wed, Feb 15, 2017 at 10:59 AM Sharan Basappa wrote: > In my pipeline script, I am running another script that compiles and runs > tests. > The script runs

environment variables not getting set

2017-02-15 Thread Sharan Basappa
In my pipeline script, I am running another script that compiles and runs tests. The script runs some jobs on sungrid. When the build is run, I see that qrsh (which is the command to launch job on sungrid) was not found. I went back and executed env to check the path and as expected the path to

Re: Groovy Script to Skip Installation of Plugins and Enable Slave

2017-02-15 Thread Indra Gunawan (ingunawa)
Add option ‘-Djenkins.install.runSetupWizard=false’ to the JAVA_ARGS for Jenkins start-up. From: on behalf of Vikas Kumar Reply-To: "jenkinsci-users@googlegroups.com" Date: Wednesday, February 15, 2017

Re: Pipeline documentation jenkins-book vs realty?

2017-02-15 Thread christian polzer
Thanks again... it is hurting, thou:) On Wednesday, February 15, 2017 at 2:24:56 PM UTC+1, Daniel Beck wrote: > > > > On 15.02.2017, at 14:21, christian polzer > wrote: > > > > Should i report that with lts version and version of all plugins?? > > You're overriding

Re: How can I add builds to the queue a little at a time?

2017-02-15 Thread Chris Overend
Thank you for your insights. This reinforces my thoughts after reading https://jenkins.io/blog/2016/11/21/gc-tuning/ -- 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

Re: How can I add builds to the queue a little at a time?

2017-02-15 Thread Baptiste Mathus
Hello, The JVM has cool standard features that help you at least know what the hell it's doing. IMO that's the first thing to do before acting. You also for instance want to know if really your system is overloaded or not before possibly growing it, and risking a stab in the dark. Basically

Delete workspace for only failed part of the matrix

2017-02-15 Thread Romaric Crailox
Hello, I have a Jenkins jobs use for compilation. I have 2 axis : PLATFORM and MODE. PLATFORM can take x86 or crosscompile value. MODE can take debug or notdebug value. I have "Delete workspace before build starts" option checked, and "Rerun build only for failed parts on the matrix" option

Re: Not able to trigger remote parameterized build (Found 403 error)

2017-02-15 Thread Sri Sayee Shyla Hari Laguduva Dhuvaraganath
Did you find the solution to this issue? I am currently facing it and I am unable to trigger the build Kindly share your solution with me, if you have found one. Thanks. On Thursday, December 15, 2016 at 10:50:29 AM UTC, Sagar Khalasi wrote: > > Yes Found same issue after disable all type

Jenkins -> Dockerfile -> Nexus Docker repository, how to do it?

2017-02-15 Thread Jae Gangemi
if you are just using docker commands you can just push the container yourself from a shell build step. if you have a java project and are using maven, the fabric8 docker plugin is excellent. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group.

Re: Pipeline documentation jenkins-book vs realty?

2017-02-15 Thread Daniel Beck
> On 15.02.2017, at 14:21, christian polzer wrote: > > Should i report that with lts version and version of all plugins?? You're overriding PATH in an unsupported way. See JENKINS-41339 for solutions. -- You received this message because you are subscribed to the

Re: Pipeline documentation jenkins-book vs realty?

2017-02-15 Thread christian polzer
Ok. updating the plugins did enable the new declarative poipeline, but disabled usage of everything path related.. shell "sh" steps: Running shell script nohup: failed to run command ‘sh’: No such file or directory Should i report that with lts version and version of all plugins?? On

Re: Groovy Script to Skip Installation of Plugins and Enable Slave

2017-02-15 Thread Vikas Kumar
All, This stands solved now. To ignore the plugins, just use this echo ${JENKINS_VERSION} > /usr/share/jenkins/ref/jenkins.install.UpgradeWizard.state echo ${JENKINS_VERSION} > /usr/share/jenkins/ref/jenkins.install.InstallUtil.lastExecVersion and for the enabling slave, the answer here

Groovy Script to Skip Installation of Plugins and Enable Slave

2017-02-15 Thread Vikas Kumar
Hello Everyone, I am trying to automate initialization of Jenkins Docker container and looking to automate two parts. - Ignore this part to select plugins. I don't need this as I am installing required plugins at the build time

mercurial webhooks triggering and modules

2017-02-15 Thread mba
Hi all, I have a structure of jobs which has a few general jobs, and a lot of component jobs. The source for all of them are in the same mercurial repo. I want to use webhooks from mercurial as triggers, and then the modules part of mercurial checkout to only run the relevant jobs. However it