Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. pipeline {
  2. agent any
  3. options {
  4. buildDiscarder(logRotator(numToKeepStr: '5'))
  5. }
  6.  
  7. stages {
  8. stage('Clean') {
  9. steps {
  10. cleanWs()
  11. }
  12. }
  13.  
  14. stage('my-awesome-repo') {
  15. steps {
  16. dir('my-awesome-repo') {
  17.  
  18. git branch: "${GIT_BRANCH}", credentialsId: 'xxxx-xxxxx-xxxx', url: 'ssh://git@github.com/my-awesome-repo.git'
  19.  
  20. script {
  21. GIT_CULPRIT = sh(returnStdout: true, script:'git --no-pager show -s --format=%ae | sed s/[@].*//').trim()
  22. echo "culprit: ${GIT_CULPRIT}"
  23. }
  24. }
  25. }
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement