You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2025/09/22 12:16:31 UTC
(sling-ide-tooling) branch issue/SLING-12945 created (now f387c761)
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a change to branch issue/SLING-12945
in repository https://gitbox.apache.org/repos/asf/sling-ide-tooling.git
at f387c761 SLING-12945 - Nightly update site references old artifacts
This branch includes the following new commits:
new f387c761 SLING-12945 - Nightly update site references old artifacts
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(sling-ide-tooling) 01/01: SLING-12945 - Nightly update site references old artifacts
Posted by ro...@apache.org.
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 <ro...@apache.org>
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: [