#!groovy pipeline { agent { label 'master' } options { timestamps() } stages { stage("build project") { steps { sh 'go build main.go webPage.go' sh 'echo ${currentBuild.currentResult} > /tmp/test.log' } } } }