Skip to content

Commit

Permalink
pipeline update
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Oct 12, 2023
1 parent 873c01f commit a1d40e9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tools/jenkins/ninja-tests-main-pipeline
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,19 @@ podTemplate(
df -h
fi
"""

// If we get here it's success, test results can change it to UNSTABLE.
currentBuild.result = 'SUCCESS'

step([$class: 'Publisher',
reportFilenamePattern: '**/testng-results.xml',
failureOnFailedTestConfig: true
])

if (currentBuild.result == 'UNSTABLE' || params.ARCHIVE_LOGS) {
sh "find . -wholename '*/target/test.log' -print0 | tar -czf test-logs.tgz --null -T -"
archiveArtifacts allowEmptyArchive: true, artifacts: "test-logs.tgz", followSymlinks: false
}
}
}

Expand Down

0 comments on commit a1d40e9

Please sign in to comment.