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 Pipeline Steps - createGitBranchV1 - createGitBranchV2 - retryAndReturn - retryWithPrompt Shell Script Shell Script node { git branch: 'test', url: 'https://github.com/nrayapati/devopsdays_test.git' def gitCommit = sh(returnStdout: true, script: 'git rev-parse HEAD').trim() echo "Git commit sha: ${gitCommit}" } Tools Credentials