Last active
December 4, 2019 18:32
-
-
Save davidmukiibi/753147da843ac4c38c0b1f9d460892f7 to your computer and use it in GitHub Desktop.
Jenkinsfile with permit.sh and revoke.sh scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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