pipeline { agent { docker { image 'ubuntu:latest' } } parameters{ buildSelector( defaultSelector: lastSuccessful(), name: 'BUILD_SELECTOR', description: 'Which build to use for copying artifacts' ) } stages { stage("Script") { steps { sh "ls -al" sh "pwd" } } } }