Skip to content

Commit

Permalink
attempt to run nightly with j21
Browse files Browse the repository at this point in the history
  • Loading branch information
cdietrich committed Dec 18, 2024
1 parent bda6bc5 commit e82e1f5
Showing 1 changed file with 40 additions and 41 deletions.
81 changes: 40 additions & 41 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ pipeline {
skipDefaultCheckout false
}

tools {
maven 'apache-maven-latest'
jdk 'temurin-jdk17-latest'
}

environment {
PUBLISH_LOCATION = 'updates'
BUILD_TIMESTAMP = sh(returnStdout: true, script: 'date +%Y%m%d%H%M').trim()
Expand Down Expand Up @@ -82,58 +77,62 @@ BRANCH_NAME=${env.BRANCH_NAME}
stage('Test With Latest') {
steps {
wrap([$class: 'Xvnc', useXauthority: true]) {
dir('.') {
sh '''
mvn \
--fail-at-end \
--no-transfer-progress \
--update-snapshots \
-P!promote \
-Dmaven.repo.local=xpect-local-maven-repository \
-Dmaven.artifact.threads=16 \
-Declipsesign=false \
-Dtycho-version=${TYCHO_VERSION} \
-Dtarget-platform=${TARGET_PLATFORM_LATEST} \
clean \
integration-test
'''
}
}
}
}

stage('Build With Primary') {
steps {
sshagent(['projects-storage.eclipse.org-bot-ssh']) {
wrap([$class: 'Xvnc', useXauthority: true]) {
withMaven(jdk: 'temurin-jdk21-latest', maven: 'apache-maven-3.9.9', options: [junitPublisher(disabled: false), openTasksPublisher(disabled: false)]) {
dir('.') {
sh '''
if [[ $PROMOTE != true ]]; then
promotion_argument='-P!promote'
fi
mvn \
--fail-at-end \
--no-transfer-progress \
--update-snapshots \
$promotion_argument \
-P!promote \
-Dmaven.repo.local=xpect-local-maven-repository \
-Dmaven.artifact.threads=16 \
-Declipsesign=${ECLIPSE_SIGN} \
-Declipsesign=false \
-Dtycho-version=${TYCHO_VERSION} \
-Dtarget-platform=${TARGET_PLATFORM_PRIMARY} \
-Dbuild.id=${BUILD_TIMESTAMP} \
-Dgit.commit=$GIT_COMMIT \
-Dbuild.type=$BUILD_TYPE \
-Dorg.eclipse.justj.p2.manager.build.url=$JOB_URL \
-Dorg.eclipse.justj.p2.manager.relative=$PUBLISH_LOCATION \
-Dtarget-platform=${TARGET_PLATFORM_LATEST} \
clean \
verify
integration-test
'''
}
}
}
}
}

stage('Build With Primary') {
steps {
sshagent(['projects-storage.eclipse.org-bot-ssh']) {
wrap([$class: 'Xvnc', useXauthority: true]) {
withMaven(jdk: 'temurin-jdk17-latest', maven: 'apache-maven-3.9.9', options: [junitPublisher(disabled: false), openTasksPublisher(disabled: false)]) {
dir('.') {
sh '''
if [[ $PROMOTE != true ]]; then
promotion_argument='-P!promote'
fi
mvn \
--fail-at-end \
--no-transfer-progress \
--update-snapshots \
$promotion_argument \
-Dmaven.repo.local=xpect-local-maven-repository \
-Dmaven.artifact.threads=16 \
-Declipsesign=${ECLIPSE_SIGN} \
-Dtycho-version=${TYCHO_VERSION} \
-Dtarget-platform=${TARGET_PLATFORM_PRIMARY} \
-Dbuild.id=${BUILD_TIMESTAMP} \
-Dgit.commit=$GIT_COMMIT \
-Dbuild.type=$BUILD_TYPE \
-Dorg.eclipse.justj.p2.manager.build.url=$JOB_URL \
-Dorg.eclipse.justj.p2.manager.relative=$PUBLISH_LOCATION \
clean \
verify
'''
}
}
}
}
}
}
}

post {
Expand Down

0 comments on commit e82e1f5

Please sign in to comment.