Skip to content

Commit

Permalink
👷 update Jenkinsfile for test.
Browse files Browse the repository at this point in the history
  • Loading branch information
kamiertop committed Feb 27, 2024
1 parent dd5c075 commit 04225d7
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ pipeline {
steps {
echo "start build project"
sh 'go version'
sh 'go env -w GOPROXY=https://goproxy.cn,direct'
sh 'go mod tidy'
sh 'go build -o hertz-api main.go'
sh 'cp hertz-api $WORKSPACE'
}
}
stage('test code') {
Expand All @@ -24,9 +20,6 @@ pipeline {
stage('run code') {
steps {
echo "start run code"
sh 'cp $WORKSPACE/hertz-api .'
sh 'chmod +x hertz-api'
sh './hertz-api &'
}
}
}
Expand Down

0 comments on commit 04225d7

Please sign in to comment.