Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pipeline {
- agent any
- options {
- buildDiscarder(logRotator(numToKeepStr: '5'))
- }
- stages {
- stage('Clean') {
- steps {
- cleanWs()
- }
- }
- stage('my-awesome-repo') {
- steps {
- dir('my-awesome-repo') {
- git branch: "${GIT_BRANCH}", credentialsId: 'xxxx-xxxxx-xxxx', url: 'ssh://git@github.com/my-awesome-repo.git'
- script {
- GIT_CULPRIT = sh(returnStdout: true, script:'git --no-pager show -s --format=%ae | sed s/[@].*//').trim()
- echo "culprit: ${GIT_CULPRIT}"
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement