Skip to main content
summaryrefslogblamecommitdiffstats
blob: 9ed69a4fe71e97a289c546d844de00f78fd23cbb (plain) (tree)
1
2
3
4
5
6
7
8






                                
                                  






                                       
                              






                                                                                   







                                                                                                                                                                                       









                                                                             
                                                   



             
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-12"
        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'
            )
        }
    }
}

Back to the top