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

Testing to do things in Jenkinsfile

parent a63fc1b1
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,27 @@ pipeline {
stage('Run Benchmark') {
steps {
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 {
cleanup {
......
......@@ -61,22 +61,4 @@ ${BENCHMARK} # > /dev/null 2>&1
HEAD=`head -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment