blob: f4a86ab63c7152f4041f81d3eeabc485c349a645 [file] [log] [blame]
pipeline {
agent {
node {
label 'promotion-vm'
}
}
tools {
jdk 'openjdk-jdk17-latest'
maven 'apache-maven-latest'
}
options {
disableConcurrentBuilds()
timeout(time: 2, unit: 'HOURS')
}
environment {
TRAIN_NAME = "2023-09"
STAGING_DIR = "/home/data/httpd/download.eclipse.org/staging/${TRAIN_NAME}"
}
stages {
stage('Create repo reports') {
//this job expects the staging dir to exist and contain a repo
//files are created in the staging dir directly (not in the workspace!)
steps {
script {
lock ('staging-repository') {
sh 'mvn -Dtycho-version=2.7.5 clean test -Preport'
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=370194 - add the name of the release on top of the repo reports main page
sh "sed -i 's/<h1>Software Repository Reports<\\/h1>/<h1>Software Repository Reports - ${TRAIN_NAME}<\\/h1>/g' ${STAGING_DIR}/buildInfo/reporeports/index.html"
//archiveArtifacts artifacts: "${STAGING_DIR}/buildInfo/reporeports/**/*", fingerprint: true, allowEmptyArchive: true
}
}
}
}
}
post {
failure {
emailext (
subject: "FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'",
body: """FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]':
Check console output at ${env.BUILD_URL}console""",
recipientProviders: [[$class: 'DevelopersRecipientProvider']],
to: 'ed.merks@eclipse-foundation.org'
)
}
}
}