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

14 views
Skip to first unread message

Markus "Shorty" Uckelmann

unread,
Jun 1, 2015, 9:37:57 AM6/1/15
to jenkins...@googlegroups.com
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, works to the point where the dir step is and then
doesn't do anything. It just keeps running and I can't remove the
build[1].

Jenkins: 1.596.3
Workflow: 1.6

Any help would be much appreciated.


[1] With /doDelete I can remove it from the slave but it still exists on
the master. Only a restart of Jenkins clears those jobs.


Cheers, Shorty

Markus "Shorty" Uckelmann

unread,
Jun 2, 2015, 2:53:41 AM6/2/15
to jenkins...@googlegroups.com
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 anything. It just keeps running and I can't remove
| the build[1].

There already seem to be some issues open, e.g.
https://issues.jenkins-ci.org/browse/JENKINS-28382

Cheers, Shorty

Reply all
Reply to author
Forward
0 new messages