From 6b3dcd5b599d0e74e2633f5beea83212bd36223d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=8A?= =?UTF-8?q?=D1=80=20=D0=9A=D1=83=D1=80=D1=82=D0=B0=D0=BA=D0=BE=D0=B2?= Date: Thu, 18 Jan 2024 17:02:33 +0200 Subject: [PATCH] Write latest master build to downloads.eclipse.org Using https://download.eclipse.org/pde/builds/master/ as destination so it can be tested more broadly. Mainly motivated to have a permanent download space which wasn't there as discovered in https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/4172 --- Jenkinsfile | 18 ++++++++++++++++-- .../forceQualifierUpdate.txt | 1 + repository/category.xml | 4 ++++ 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6688774800..a475e86895 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,15 +16,16 @@ pipeline { stage('Build') { steps { wrap([$class: 'Xvnc', useXauthority: true]) { - sh ''' + sh """ mvn clean verify --batch-mode -Dmaven.repo.local=$WORKSPACE/.m2/repository \ -Pbree-libs \ -Papi-check \ -Pjavadoc \ + ${env.BRANCH_NAME=='master' ? '-Peclipse-sign': ''} \ -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true \ -Dtycho.debug.artifactcomparator \ -Dpde.docs.baselinemode=fail - ''' + """ } } post { @@ -42,5 +43,18 @@ pipeline { } } } + stage('Deploy') { + when { + branch 'master' + } + steps { + sshagent ( ['projects-storage.eclipse.org-bot-ssh']) { + sh ''' + ssh genie.pde@projects-storage.eclipse.org "rm -rf /home/data/httpd/download.eclipse.org/pde/builds/master/*" + scp -r repository/target/repository/* genie.pde@projects-storage.eclipse.org:/home/data/httpd/download.eclipse.org/pde/builds/master/ + ''' + } + } + } } } diff --git a/e4tools/features/org.eclipse.e4.tools.persistence.feature/forceQualifierUpdate.txt b/e4tools/features/org.eclipse.e4.tools.persistence.feature/forceQualifierUpdate.txt index 9d4f218a38..c25a4086cf 100644 --- a/e4tools/features/org.eclipse.e4.tools.persistence.feature/forceQualifierUpdate.txt +++ b/e4tools/features/org.eclipse.e4.tools.persistence.feature/forceQualifierUpdate.txt @@ -1 +1,2 @@ # To force a version qualifier update add the bug here +Touch to publish source feature. diff --git a/repository/category.xml b/repository/category.xml index d7e3defcf4..409f0557bf 100644 --- a/repository/category.xml +++ b/repository/category.xml @@ -6,6 +6,10 @@ + + + +