pipeline { agent any options { buildDiscarder(logRotator(numToKeepStr: "5")) } stages { stage ("Build on Linux") { agent { label "linux" } steps { script { sh ''' #!/bin/bash chmod +x build.sh ./build.sh ''' } } post { always { archiveArtifacts artifacts: "out/awsparser" cleanWs() } } } } }