test.jenkins 303 B

12345678910111213141516171819202122
  1. #!groovy
  2. pipeline {
  3. agent {
  4. label 'master'
  5. }
  6. options {
  7. timestamps()
  8. }
  9. stages {
  10. stage("build project") {
  11. steps {
  12. try{
  13. sh 'go build main.go webPage.go'
  14. }
  15. catch (e){
  16. }
  17. }
  18. }
  19. }
  20. }