pipeline { agent { docker { image 'ubuntu:16.04' } } stages { stage('Test') { steps { sh 'sudo apt-get install git -y' sh 'ls' sh 'pwd' } } } }