Re: Pipeline: BUILD_URL for Blue Ocean

2018-04-20 Thread Craig Rodrigues
Try: env.RUN_DISPLAY_URL If you look at this plugin: https://plugins.jenkins.io/display-url-api you will see there these variables you can try: RUN_DISPLAY_URL – links to the run result RUN_CHANGES_DISPLAY_URL – links to the changes page for a run JOB_DISPLAY_URL – links to the jobs homepage

Re: Install specific version of plugins with Groovy script

2018-04-20 Thread geoffroy . jabouley
Hello just in case, could someone share a groovy sample script to achieve this? I guess you have to download .jpi file into /plugins folder (also handling dependencies...), then restart jenkins? I had written that in shell (ugly but working), but still learning in Groovy! Thanks in advance On T

Re: not able to change string value in Jenkinsfile

2018-04-20 Thread Slide
The other problem is that you are expecting state to be retained between invocations of sh. sh 'cd /media/usb' sh 'rm -rf testing' sh 'mkdir testing' sh 'cd testing' git branch: 'feature', url: 'g...@github.com: CelestialSystem/cyelp.git' sh 'cp develop-unit/arm/ltp.

Pipeline: MissingPropertyException for class

2018-04-20 Thread Sverre Moe
The following pipeline script fails class Test implements Serializable { final def buildIn final def allUpstreamDependencies = [:] Test(buildIn) { this.buildIn = buildIn } void test() { buildIn.node("master") { allUpstreamDependencies["projecA"] =

Need Help with SSH Slave Plugin - Unable to Start Node with SSH

2018-04-20 Thread srk
Hi I have deployed Jenkins 2.117 war file onto WebLogic 12.2.1.2 as a webapplication and I am able to login to the application. I want to add additional nodes (remote servers) and would like to launch them using SSH, I have ssh key setup configured between the master where the WebLogic hostin

Agent allocation using `when` statement

2018-04-20 Thread horn
We have a pipeline which generally looks like the following: properties([parameters([ booleanParam(defaultValue: false, description: '', name: 'ARMv8')])]) pipeline { agent any stage('build') { options { skipDefaultCheckout true } when { expression { return params.ARMv8 } }

Re: not able to change string value in Jenkinsfile

2018-04-20 Thread Somshekar C Kadam
Hi Slide, One more observation, this result file is not in workspace. that is the reason its always outputting 1 when we print the file content. This could be root cause in my understanding. I am sorry I should have mentioned this ealrier that verify script writes this file on hardisk which is not

RE: Declarative script: How to escape 'Program Files (x86)'?

2018-04-20 Thread David Aldrich
> I'd guess you need to escape the spaces in the original string? Escaping didn’t help. I’ve posted a complete description of the problem on Stackoverflow: https://stackoverflow.com/questions/49922959/how-to-fix-java-was-unexpected-at-this-time-when-invoking-vs-2017-build-to From: jenkinsci-us