Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhquang111 committed Sep 5, 2024
1 parent 752c40c commit cc332a9
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,22 @@ pipeline {
go 'go1.22'
}
stages {
stage('Checkout') {
steps {
// Checkout your code from your version control system
git 'https://github.com/your-username/your-repo.git'
}
}

stage('Build') {
steps {
// Run tests
sh 'go test ./...'

// Build the project
sh 'go build -o myapp'
echo 'building...'
}
}

stage('Archive') {
stage('Push') {
steps {
// Archive the built artifact
archiveArtifacts artifacts: 'myapp', fingerprint: true
echo 'pushing...'
}
}
}

post {
always {
// Clean up workspace
cleanWs()
echo 'build done...'
}
}
}

0 comments on commit cc332a9

Please sign in to comment.