From 11290197aa42875f6b77cdd00324d3312d3aa902 Mon Sep 17 00:00:00 2001 From: Tobias Ortmayr Date: Tue, 24 Jan 2023 06:12:29 -0800 Subject: [PATCH] Fix P2 deployment (#71) 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 --- Jenkinsfile | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7d4b1e0..92cef7f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 } + } } }