Scripted pipeline: Is a job triggered by pipelineTrigger?

2018-08-14 Thread Markus "Shorty" Uckelmann
Hi all, I use the following code to trigger a job on a daily basis: properties([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', numToKeepStr: '10']], pipelineTriggers([cron( env.BRANCH_NAME == 'master' ? '@hourly' : '' )]), ]) No

Re: Scripted pipeline aborts for unknown reasons

2018-08-10 Thread Markus "Shorty" Uckelmann
On 8/10/18 1:34 PM, 'Björn Pedersen' via Jenkins Users wrote: Hi, Hola Björn, I think you  are trying to be too clever here: HaHa, would I ask this if I was clever? ;) pipeline{ } expects a declarative pipeline, but you are supplying a scripted one inside. Brilliant, I should have know

Scripted pipeline aborts for unknown reasons

2018-08-09 Thread Markus "Shorty" Uckelmann
Hello all, My Jenkinsfile aborts with an error and I can't find the reason. I ran out of ideas. Also I have no clue what the error means (neither Java nor Groovy is my strength). The curious thing is, when I remove the last block ("Clean") in the runPipeline function the job runs successfully.

Error while running dynamically created parallel stages

2018-08-03 Thread Markus "Shorty" Uckelmann
Hi all, I dynamically create parallel stages from the contents of a file. The "parallel" step run, ut the job still fails with a "mysterious" error. The code and the error message can be found in the Gist https://gist.github.com/bemeyert/2eeffa6f649b57ffc9f015c3a5942e31 Any help would be muc

Re: [workflow-plugin] How to use SSH-Keys?

2015-06-11 Thread Markus "Shorty" Uckelmann
Am 10.06.2015 um 14:48 schrieb Markus "Shorty" Uckelmann: I try to convert a "standard" build to a workflow build. In the the original build we use the SSH-Agent plugin to access SSH-keys we need for deploying the artifacts in the builds shell-script. How can I do something l

[workflow-plugin] How to use SSH-Keys?

2015-06-10 Thread Markus "Shorty" Uckelmann
Hi all, I try to convert a "standard" build to a workflow build. In the the original build we use the SSH-Agent plugin to access SSH-keys we need for deploying the artifacts in the builds shell-script. How can I do something like this in workflow? Is this even possible? Cheers, Shorty -- Yo

Re: [workflow] - First failing Newbie (dir) steps

2015-06-01 Thread Markus "Shorty" Uckelmann
Am 02.06.2015 um 00:18 schrieb Craig Rodrigues: | Hi, Hola Craig, | If you are going to use the workflow plugin, I highly recommend | you watch this Youtube video by Cyrille Le Clerc from Cloudbees: Aye, will do. | That video is so good, I think it should be, put in the README.md | file for th

SOLVED - Re: [workflow-plugin] - Problems with "dir" step

2015-06-01 Thread Markus "Shorty" Uckelmann
Am 01.06.2015 um 15:37 schrieb Markus "Shorty" Uckelmann: | node ('admins') { def dir = '7packer-boxes' Renaming the variable from "dir" to "mydir" helped. | The build starts, works to the point where the dir step is and | then doesn't do a

[workflow-plugin] - Problems with "dir" step

2015-06-01 Thread Markus "Shorty" Uckelmann
Hi all, I just started to play a bit with the workflow-plugin and got stuck with dir step. My "awesome" code: stage 'box' node ('admins') { def dir = '7packer-boxes' sh "mkdir ${dir} || :" echo "Changing to dir ${dir}" sh "pwd" dir("${dir}") { sh "pwd" } } The build st

[workflow] - First failing Newbie (dir) steps

2015-05-27 Thread Markus "Shorty" Uckelmann
Hi all, I just started to play a bit with the workflow-plugin and got stuck with dir step. My "awesome" code: stage 'box' node ('admins') { def dir = '7packer-boxes' sh "mkdir ${dir} || :" echo "Changing to dir ${dir}" sh "pwd" dir("${dir}") { sh "pwd" } } The build starts, w