feat: Add jenkinsfile
This commit is contained in:
parent
6bfe840314
commit
2a2da32245
21
Jenkinsfile
vendored
Normal file
21
Jenkinsfile
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
pipeline {
|
||||
agent {
|
||||
docker {
|
||||
reuseNode true
|
||||
image 'rust:1.81'
|
||||
}
|
||||
}
|
||||
stages {
|
||||
stage('Build release binary') {
|
||||
steps {
|
||||
sh 'cargo build --release'
|
||||
}
|
||||
}
|
||||
stage('Move binary') {
|
||||
steps {
|
||||
sh 'mv ./target/release/thp /var/bin'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user