Skip to content

Instantly share code, notes, and snippets.

@davidmukiibi
Last active December 4, 2019 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidmukiibi/753147da843ac4c38c0b1f9d460892f7 to your computer and use it in GitHub Desktop.
Save davidmukiibi/753147da843ac4c38c0b1f9d460892f7 to your computer and use it in GitHub Desktop.
Jenkinsfile with permit.sh and revoke.sh scripts
pipeline {
agent any
environment {
K6_API_TOKEN=credentials("K6_API_TOKEN")
}
stages {
stage('Performance Testing') {
steps {
echo 'Running K6 performance tests...'
sh 'sudo chmod +x setup.sh'
sh 'sudo ./setup.sh'
sh 'k6 login cloud --token ${K6_API_TOKEN}'
sh 'k6 cloud tests/cloud-test.js'
echo 'Completed Running K6 performance tests!'
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment