Navigation : Setup List of Labs - Basics Labs -- Jenkinsfile -- Declarative vs Scripted Pipeline -- Node/Stage/Step/Groovy -- Git vs Checkout SCM -- Tools -- Shell Script -- Credentials -- Stash and Unstash -- Clean Workspace -- Parameters -- Strings -- Parallel - Shared Pipeline Library Labs -- Using Shared Library -- Example -- Closure vs Map - Advanced Labs -- Build Name -- Remote Loader -- Lockable Resources -- Config File Provider -- Script Approval vs Sandbox -- SSH Agent -- Job DSL -- Flow Control - Enterprise Labs -- Config-Driven Pipeline Plugin -- Moduler Pipeline Library -- Jenkins Template Engine Pipeline Steps - retryWithPrompt - retryAndReturn - createGitBranchV1 - createGitBranchV2 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}" } Tools Credentials