Skip to content

Commit

Permalink
Jenkinsfile: use node instead of stage
Browse files Browse the repository at this point in the history
  • Loading branch information
ehildenb committed Jun 11, 2019
1 parent 5ccc693 commit 2fb7ca5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ pipeline {
ansiColor('xterm')
}
stages {
stage('Kill old builds') {
agent any
steps {
node {
stage('Kill old builds') {
build.getProject()._getRuns().iterator().each{ run ->
def exec = run.getExecutor()
//if the run is not a current build and it has executor (running) then stop it
Expand Down

0 comments on commit 2fb7ca5

Please sign in to comment.