Skip to content
Snippets Groups Projects
Commit fae379ed authored by Reiner Jung's avatar Reiner Jung
Browse files

Testing to do things in Jenkinsfile

parent 581d32c7
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,27 @@ pipeline { ...@@ -44,6 +44,27 @@ pipeline {
stage('Run Benchmark') { stage('Run Benchmark') {
steps { steps {
sh 'frameworks/Kieker/scripts/run-benchmark.sh ${KEYSTORE} ${UPDATE_SITE_URL}' sh 'frameworks/Kieker/scripts/run-benchmark.sh ${KEYSTORE} ${UPDATE_SITE_URL}'
sshagent(credentials: ['kieker-irl-key']) {
sh('''
#!/usr/bin/env bash
set +x
## fetch old results
information "Fetch old results file."
sftp -oStrictHostKeyChecking=no -i "${KEYSTORE}" "${UPDATE_SITE_URL}/all-results.json"
information "Got file"
cat all-results.json
## compile results into json
information "Compile results"
frameworks/Kieker/scripts/compile-results/bin/compile-results "${BASE_DIR}/results-kieker/results-text.csv" "${BASE_DIR}/all-results.json"
information "Done"
## push results
information "Push results back"
sftp -oStrictHostKeyChecking=no -i "${KEYSTORE}" "${UPDATE_SITE_URL}/all-results.json" <<< $'put all-results.json'
information "Done"
''')
}
} }
post { post {
cleanup { cleanup {
......
...@@ -61,22 +61,4 @@ ${BENCHMARK} # > /dev/null 2>&1 ...@@ -61,22 +61,4 @@ ${BENCHMARK} # > /dev/null 2>&1
HEAD=`head -1 $RESULT_FILE` HEAD=`head -1 $RESULT_FILE`
VALUE=`tail -1 $RESULT_FILE` VALUE=`tail -1 $RESULT_FILE`
## summary results
## fetch old results
information "Fetch old results file."
sftp -i "${KEYSTORE}" "${URL}/all-results.json"
information "Got file"
cat all-results.json
## compile results into json
information "Compile results"
${BASE_DIR}/compile-results/bin/compile-results "${BASE_DIR}/results-kieker/results-text.csv" "${BASE_DIR}/all-results.json"
information "Done"
## push results
information "Push results back"
sftp -i "${KEYSTORE}" "${URL}/all-results.json" <<< $'put all-results.json'
information "Done"
# end # end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment