Skip to content

Commit 9d596dc

Browse files
authored
Merge pull request #2429 from SmartThingsCommunity/feature/jenkins_improvement
Deploy improvements: use Jenkins file syntax
2 parents 0cd6f91 + 71ac875 commit 9d596dc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Jenkinsfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,8 @@ pipeline {
5858
steps {
5959
sh 'python3 tools/deploy.py'
6060
script {
61-
def failures_file = new File(env.FAILURE_FILE)
62-
if (failures_file.exists()) {
63-
currentBuild.description += failures_file.getText()
61+
if (fileExists(env.FAILURE_FILE)) {
62+
currentBuild.description += readFile(env.FAILURE_FILE)
6463
currentBuild.result = 'UNSTABLE'
6564
}
6665
}

0 commit comments

Comments
 (0)