Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. pipeline {
  2. agent { label "aws-build-agent" }
  3. stages {
  4. stage('scm') {
  5. steps {
  6. checkout scm
  7. }
  8. }
  9. stage('build') {
  10. steps {
  11. sh './.cicd/build.sh'
  12. }
  13. }
  14. stage('deploy') {
  15. when { branch 'master' }
  16. steps {
  17. withCredentials(
  18. [
  19. sshUserPrivateKey(
  20. credentialsId: "my-deploy-key",
  21. keyFileVariable: 'RSA_PRIVATE_KEY_FILE'
  22. )
  23. ]
  24. ) {
  25. sh './.cicd/deploy.sh'
  26. }
  27. }
  28. }
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement