This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to branch issue/SLING-12945 in repository https://gitbox.apache.org/repos/asf/sling-ide-tooling.git
commit f387c7619c29f860bb2d09fb5bada787f4dc48ef Author: Robert Munteanu <[email protected]> AuthorDate: Mon Sep 22 14:15:43 2025 +0200 SLING-12945 - Nightly update site references old artifacts Reuse the artifacts already built in the reactor. --- Jenkinsfile | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 72fcf954..fda64555 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -34,7 +34,8 @@ def generateStages(String os, def mvnVersion, def javaVersion) { def prefix = isWindows ? "win" : "linux" def nodeLabel = isWindows ? "Windows" : "ubuntu" - String goals = (!isWindows && shouldDeploy()) ? 'clean deploy' : 'clean install' + boolean shouldDeployInThisBranch = (!isWindows && shouldDeploy()) + String goals = shouldDeployInThisBranch ? 'clean deploy' : 'clean install' def stages = [ // use a local repository due to using version ranges in Tycho (https://github.com/eclipse-tycho/tycho/issues/1464) @@ -60,6 +61,10 @@ def generateStages(String os, def mvnVersion, def javaVersion) { runCmd "mvn -f eclipse ${goals}" } } + + if (shouldDeployInThisBranch) { + stash(name: 'p2-repository', includes: 'eclipse/p2update/target/repository/**') + } } } finally { // workaround for https://issues.jenkins-ci.org/browse/JENKINS-55889 @@ -86,15 +91,9 @@ def generateStages(String os, def mvnVersion, def javaVersion) { def buildAndDeployP2Repository( def mvnVersion, def javaVersion ) { node('ubuntu') { - stage('Build P2 Repository') { + stage('Deploy P2 Repository') { echo "Running on node ${env.NODE_NAME}" - checkout scm - withMaven(maven: mvnVersion, jdk: javaVersion, mavenLocalRepo: '.repository', options: [artifactsPublisher(disabled: true)]) { - timeout(20) { - // nightly builds are not GPG-signed - runCmd 'mvn -f eclipse/p2update clean verify -e' - } - } + unstash(name: 'p2-repository') } stage('Deploy to ASF Nightlies') { sshPublisher(publishers: [
