Skip to content

Instantly share code, notes, and snippets.

@dragoonis dragoonis/Jenkinsfile Secret
Last active Apr 17, 2018

Embed
What would you like to do?
sh 'ci/run_protractor_suite.sh'
if(protractor_suite failed) {
sh 'ci/run_serenity_report.sh'
publishHTML([
allowMissing: false,
alwaysLinkToLastBuild: false,
keepAll: false,
reportDir: 'protractor-serenity-report',
reportFiles: 'index.html',
reportName: 'Supervision Serenity Report',
reportTitles: "Tag: ${SIRIUS_NEW_TAG}"
])
fileOperations([fileZipOperation('protractor-serenity-report')])
archiveArtifacts artifacts: 'protractor-serenity-report.zip'
}
stage('Supervision Protractor') {
steps {
script {
ansiColor('xterm') {
dir('ci_scripts_workspace') {
try {
sh 'ci/run_protractor_suite.sh'
} catch (exception) {
sh 'ci/run_serenity_report.sh'
publishHTML([
allowMissing: false,
alwaysLinkToLastBuild: false,
keepAll: false,
reportDir: 'protractor-serenity-report',
reportFiles: 'index.html',
reportName: 'Supervision Serenity Report',
reportTitles: "Tag: ${SIRIUS_NEW_TAG}"
])
fileOperations([fileZipOperation('protractor-serenity-report')])
archiveArtifacts artifacts: 'protractor-serenity-report.zip'
throw exception
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.