Skip to content

Commit

Permalink
[I/Y/P-Build] Unify and fix artifact archiving and make it more specific
Browse files Browse the repository at this point in the history
The archiving step in case of build-failures resulted in no artifacts
being archived.
  • Loading branch information
HannesWell committed Jan 16, 2025
1 parent 2e78080 commit fe31258
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
11 changes: 4 additions & 7 deletions JenkinsJobs/Builds/build.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -284,15 +284,10 @@ spec:
sh '''
source $CJE_ROOT/buildproperties.shsource
cp -r $logDir/* $CJE_ROOT/$DROP_DIR/$BUILD_ID/buildlogs
rm -rf $logDir
rm -rf $CJE_ROOT/$DROP_DIR/$BUILD_ID/apitoolingreference
cp $CJE_ROOT/buildproperties.txt $CJE_ROOT/$DROP_DIR/$BUILD_ID
cp $CJE_ROOT/buildproperties.php $CJE_ROOT/$DROP_DIR/$BUILD_ID
cp $CJE_ROOT/buildproperties.properties $CJE_ROOT/$DROP_DIR/$BUILD_ID
cp $CJE_ROOT/buildproperties.shsource $CJE_ROOT/$DROP_DIR/$BUILD_ID
cp $CJE_ROOT/buildproperties.* $CJE_ROOT/$DROP_DIR/$BUILD_ID
cp $CJE_ROOT/$DROP_DIR/$BUILD_ID/buildproperties.* $CJE_ROOT/$EQUINOX_DROP_DIR/$BUILD_ID
'''
archiveArtifacts '**/siteDir/**'
}
}
stage('Promote Eclipse platform'){
Expand Down Expand Up @@ -354,11 +349,13 @@ spec:
}
}
post {
always {
archiveArtifacts 'cje-production/siteDir/**'
}
failure {
emailext subject: "${RELEASE_VER} ${BUILD_TYPE}-Build: ${BUILD_IID} - BUILD FAILED",
body: "Please go to ${BUILD_URL}console and check the build failure.", mimeType: 'text/plain',
to: "${BUILD.mailingList}", from:'[email protected]'
archiveArtifacts "${CJE_ROOT}/siteDir/eclipse/downloads/drops4/${BUILD_IID}/gitLog.html, $CJE_ROOT/gitCache/eclipse.platform.releng.aggregator"
}
success {
emailext subject: "${RELEASE_VER} ${BUILD_TYPE}-Build: ${BUILD_IID} ${COMPARATOR_ERRORS_SUBJECT}",
Expand Down
8 changes: 3 additions & 5 deletions JenkinsJobs/YBuilds/P_build.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,6 @@ spec:
}
}
}
stage('Archive artifacts'){
steps {
archiveArtifacts '**/siteDir/**'
}
}
stage('Promote Update Site'){
steps {
container('jnlp') {
Expand All @@ -227,6 +222,9 @@ spec:
}
}
post {
always {
archiveArtifacts 'cje-production/siteDir/**'
}
failure {
emailext body: "Please go to <a href='${BUILD_URL}console'>${BUILD_URL}console</a> and check the build failure.<br><br>",
subject: "${env.RELEASE_VER.trim()} P-Build: ${env.BUILD_IID.trim()} - BUILD FAILED",
Expand Down

0 comments on commit fe31258

Please sign in to comment.