Shell Script

Shell Script

node {
    git branch: 'test', url: 'https://github.com/nrayapati/kcdc_test.git'
    def gitCommit = sh(returnStdout: true, script: 'git rev-parse HEAD').trim()
    echo "Git commit sha: ${gitCommit}"
}