diff --git a/jenkinsfile b/jenkinsfile new file mode 100644 index 0000000..6c9c1b8 --- /dev/null +++ b/jenkinsfile @@ -0,0 +1,13 @@ +pipeline { + agent { label 'golang' } + + stages { + stage('Build') { + steps { + sh '''export PATH=$PATH:/usr/local/go/bin + go build -o "HelloWorld-amd64$BUILD_DISPLAY_NAME"''' + archiveArtifacts artifacts: 'HelloWorld-amd64*', followSymlinks: false + } + } + } +} \ No newline at end of file