Skip to content

Commit

Permalink
Fix P2 deployment (#71)
Browse files Browse the repository at this point in the history
Apparently the  config of the eclipseglsp/ci:alpine-v4.0 image does not allow proper synching with rsync and ssh.
Therefore we execute the p2 deployment in separate job with a proper ssh configuration
  • Loading branch information
tortmayr authored Jan 24, 2023
1 parent 857ba83 commit 1129019
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -164,28 +164,9 @@ pipeline {
}
stage('Deploy server (P2)') {
steps {
container('ci') {
timeout(30) {
dir('server') {
sh "rm -rf ${WORKSPACE}/p2-update-site/ide/p2"
sh "mkdir -p ${WORKSPACE}/p2-update-site/ide/p2/nightly"
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh "mvn clean install -Prelease -B -Dlocal.p2.root=${WORKSPACE}/p2-update-site"
}
}
}
}
}

post {
success{
script {
if (env.BRANCH_NAME == 'master') {
archiveArtifacts artifacts: 'p2-update-site/**', followSymlinks: false
}
}
}
build job: 'deploy-ide-p2-nightly', wait: true
}

}
}
}
Expand Down

0 comments on commit 1129019

Please sign in to comment.