1
0

test.jenkins 294 B

123456789101112131415161718
  1. #!groovy
  2. pipeline {
  3. agent {
  4. label 'master'
  5. }
  6. options {
  7. timestamps()
  8. }
  9. stages {
  10. stage("build project") {
  11. steps {
  12. sh 'go build main.go webPage.go'
  13. sh 'echo ${currentBuild.currentResult} > /tmp/test.log'
  14. }
  15. }
  16. }
  17. }