Skip to content

Commit

Permalink
removed cleanup from Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Nov 24, 2022
1 parent e2919a8 commit e7cab52
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@ pipeline {
}

stages {

stage('Build') {
steps {
wrap([$class: 'Xvnc', takeScreenshot: false, useXauthority: true]) {
wrap([$class: 'Xvnc', takeScreenshot: false, useXauthority: true]) {
sh """
metacity --sm-disable --replace 2> wm.err &
mvn -f releng/org.eclipse.emf.parsley.parent/pom.xml clean verify
"""
}
}
}
}
}
Expand All @@ -38,27 +37,5 @@ pipeline {
success {
archiveArtifacts artifacts: 'target/repository/, **/target/work/data/.metadata/.log'
}
cleanup {
script {
def curResult = currentBuild.currentResult

if (curResult != 'SUCCESS' || lastResult != 'SUCCESS') {
def color = ''
switch (curResult) {
case 'SUCCESS':
color = '#00FF00'
break
case 'UNSTABLE':
color = '#FFFF00'
break
case 'FAILURE':
color = '#FF0000'
break
default: // e.g. ABORTED
color = '#666666'
}
}
}
}
}
}

0 comments on commit e7cab52

Please sign in to comment.