From 2efbfdc99d973e9641881697ceea0e88fbf60cba Mon Sep 17 00:00:00 2001
From: Reiner Jung <reiner.jung@email.uni-kiel.de>
Date: Sun, 29 Nov 2020 12:54:04 +0100
Subject: [PATCH] Further update.

---
 Jenkinsfile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 44e0811..a9eed98 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -53,7 +53,10 @@ pipeline {
           sshagent(credentials: ['kieker-irl-key']) {
              sh 'sftp -oNoHostAuthenticationForLocalhost=yes -oStrictHostKeyChecking=no -oUser=repo  -F /dev/null -i ${KEYSTORE} ${UPDATE_SITE_URL}'
              sh '${BASE_DIR}/compile-results/bin/compile-results "${BASE_DIR}/results-kieker/results-text.csv" "${BASE_DIR}/all-results.json"'
-             sh 'echo put all-results.json |sftp -oNoHostAuthenticationForLocalhost=yes -oStrictHostKeyChecking=no -oUser=repo  -F /dev/null -i ${KEYSTORE} ${UPDATE_SITE_URL}/all-results.json'
+             sh '''
+                 cd ${BASE_DIR}
+                 echo "put all-results.json" | sftp -oNoHostAuthenticationForLocalhost=yes -oStrictHostKeyChecking=no -oUser=repo  -F /dev/null -i ${KEYSTORE} ${UPDATE_SITE_URL}
+                '''
           }
        }
        post {
-- 
GitLab