From 068155ee4304cf49229d795364c413c69424752c Mon Sep 17 00:00:00 2001 From: Julien Enoch Date: Tue, 19 May 2020 10:06:02 +0200 Subject: [PATCH] Update Jenkinsfile for upload to download.eclipse.org --- Jenkinsfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 61dc89506..2289ed39c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -38,10 +38,12 @@ pipeline { } stage('Deploy to to download.eclipse.org') { steps { - sh ''' - ssh genie.zenoh@projects-storage.eclipse.org mkdir -p /home/data/httpd/download.eclipse.org/zenoh/zenoh-c/${TAG} - scp build/crossbuilds/*/*.deb* build/crossbuilds/*/*.rpm* /home/data/httpd/download.eclipse.org/zenoh/zenoh-c/${TAG}/ - ''' + sshagent ( ['projects-storage.eclipse.org-bot-ssh']) { + sh ''' + ssh genie.zenoh@projects-storage.eclipse.org mkdir -p /home/data/httpd/download.eclipse.org/zenoh/zenoh-c/${TAG} + scp build/crossbuilds/*/*.deb* build/crossbuilds/*/*.rpm* genie.zenoh@projects-storage.eclipse.org:/home/data/httpd/download.eclipse.org/zenoh/zenoh-c/${TAG}/ + ''' + } } } }