mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 13:09:49 -07:00
Create Jenkinsfile
This commit is contained in:
parent
ee35550f70
commit
dcbf6e9d19
1 changed files with 39 additions and 0 deletions
39
Jenkinsfile
vendored
Normal file
39
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Checkout') {
|
||||||
|
steps {
|
||||||
|
checkout scm
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Build Go Application') {
|
||||||
|
steps {
|
||||||
|
sh 'go get -u github.com/bettercap/bettercap'
|
||||||
|
sh 'go build -o myapp main.go'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Run Bettercap') {
|
||||||
|
steps {
|
||||||
|
sh './bettercap <options>'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Publish Artifacts') {
|
||||||
|
steps {
|
||||||
|
archiveArtifacts artifacts: 'myapp'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
success {
|
||||||
|
echo 'Build successful!'
|
||||||
|
}
|
||||||
|
failure {
|
||||||
|
echo 'Build failed!'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue