Skip to content

Commit

Permalink
Write latest master build to downloads.eclipse.org
Browse files Browse the repository at this point in the history
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
  • Loading branch information
akurtakov committed Jan 30, 2024
1 parent f26df87 commit 6b3dcd5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
18 changes: 16 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -42,5 +43,18 @@ pipeline {
}
}
}
stage('Deploy') {
when {
branch 'master'
}
steps {
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh '''
ssh [email protected] "rm -rf /home/data/httpd/download.eclipse.org/pde/builds/master/*"
scp -r repository/target/repository/* [email protected]:/home/data/httpd/download.eclipse.org/pde/builds/master/
'''
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# To force a version qualifier update add the bug here
Touch to publish source feature.
4 changes: 4 additions & 0 deletions repository/category.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
<feature id="org.eclipse.pde.spies.source" version="0.0.0"/>
<feature id="org.eclipse.pde.unittest.junit" version="0.0.0"/>
<feature id="org.eclipse.pde.unittest.junit.source" version="0.0.0"/>
<feature id="org.eclipse.e4.core.tools.feature" version="0.0.0"/>
<feature id="org.eclipse.e4.core.tools.feature.source" version="0.0.0"/>
<feature id="org.eclipse.e4.tools.persistence.feature" version="0.0.0"/>
<feature id="org.eclipse.e4.tools.persistence.feature.source" version="0.0.0"/>
<!-- Tests -->
<bundle id="org.eclipse.pde.ua.tests"/>
<bundle id="org.eclipse.pde.ui.tests"/>
Expand Down

0 comments on commit 6b3dcd5

Please sign in to comment.