diff --git a/jenkinsfiles/standard_libraries_1 b/jenkinsfiles/standard_libraries_1 index 5bea258..3b50f36 100644 --- a/jenkinsfiles/standard_libraries_1 +++ b/jenkinsfiles/standard_libraries_1 @@ -326,5 +326,31 @@ pipeline { ''' } } + } + + post { + always { + echo 'This will always run' + } + success { + echo 'This will run only if successful' + // no email on success + // mail bcc: '', body: "Example
Project: ${env.JOB_NAME}
Build Number: ${env.BUILD_NUMBER}
URL of the build: ${env.BUILD_URL}", cc: '', charset: 'UTF-8', from: '', mimeType: 'text/html', replyTo: '', subject: "SUCCESS CI: Project name -> ${env.JOB_NAME}", to: "jenkins@cppalliance.org"; + } + failure { + echo 'This will run only if failure' + mail bcc: '', body: "Example
Project: ${env.JOB_NAME}
Build Number: ${env.BUILD_NUMBER}
URL of the build: ${env.BUILD_URL}", cc: '', charset: 'UTF-8', from: '', mimeType: 'text/html', replyTo: '', subject: "ERROR CI: Project name -> ${env.JOB_NAME}", to: "jenkins@cppalliance.org"; + } + unstable { + echo 'This will run only if the run was marked as unstable' + mail bcc: '', body: "Example
Project: ${env.JOB_NAME}
Build Number: ${env.BUILD_NUMBER}
URL of the build: ${env.BUILD_URL}", cc: '', charset: 'UTF-8', from: '', mimeType: 'text/html', replyTo: '', subject: "UNSTABLE STATUS CI: Project name -> ${env.JOB_NAME}", to: "jenkins@cppalliance.org"; + } + changed { + echo 'This will run only if the state of the Pipeline has changed' + echo 'For example, if the Pipeline was previously failing but is now successful' + mail bcc: '', body: "Example
Project: ${env.JOB_NAME}
Build Number: ${env.BUILD_NUMBER}
URL of the build: ${env.BUILD_URL}", cc: '', charset: 'UTF-8', from: '', mimeType: 'text/html', replyTo: '', subject: "CHANGED STATUS CI: Project name -> ${env.JOB_NAME}", to: "jenkins@cppalliance.org"; + } + } + } diff --git a/scripts/boostorg_charconv_postbuild.sh b/scripts/boostorg_charconv_postbuild.sh new file mode 100755 index 0000000..09beb0f --- /dev/null +++ b/scripts/boostorg_charconv_postbuild.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +set -xe +pwd +sourcefile=boost-root/libs/charconv/doc/html/charconv.html +destfile=boost-root/libs/charconv/doc/html/index.html + +if [ ! -f $destfile ]; then + cp $sourcefile $destfile +fi diff --git a/scripts/boostorg_charconv_prebuild.sh b/scripts/boostorg_charconv_prebuild.sh new file mode 100755 index 0000000..2741194 --- /dev/null +++ b/scripts/boostorg_charconv_prebuild.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +set -xe +echo "export PRTEST=prtest" >> jenkinsjobinfo.sh +echo "export ONLY_BUILD_ON_DOCS_MODIFICATION=true" >> jenkinsjobinfo.sh