From 6e5afbd60ece1904b8d60fc9a4c6783965959c7a Mon Sep 17 00:00:00 2001
From: Reiner Jung <reiner.jung@email.uni-kiel.de>
Date: Sat, 28 Nov 2020 20:08:12 +0100
Subject: [PATCH] Update Jenkinsfile

---
 Jenkinsfile | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 08e2756..f55ec4a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -45,12 +45,13 @@ pipeline {
     stage('Run Benchmark') {
        steps {
           sh '${BASE_DIR}/run-benchmark.sh ${KEYSTORE} ${UPDATE_SITE_URL}'
-          sh 'echo before'
-          script {
-             def remote = [name: 'repo.se.internal', host: 'repo.se.internal', user: 'repo', identityFile: '${KEYSTORE}', allowAnyHosts: true]
-             sshGet remote: remote, from: 'all-results.json', into: '.'
-          }
-          sh 'echo after'
+       }
+    }
+    
+    stage('Upload') {
+       agent { label 'build-node4' }
+       sshagent(credentials: ['kieker-key']) {
+          sh 'sftp -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"'
        }
        post {
-- 
GitLab