2019-05-13 18:24:15 +00:00
|
|
|
pipeline {
|
2019-05-13 19:45:37 +00:00
|
|
|
agent none
|
2019-05-13 18:24:15 +00:00
|
|
|
stages {
|
|
|
|
|
stage('build') {
|
2019-05-13 19:47:49 +00:00
|
|
|
agent {
|
|
|
|
|
docker {
|
|
|
|
|
image 'rust'
|
|
|
|
|
reuseNode true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
steps {
|
2019-05-13 20:01:20 +00:00
|
|
|
sh 'cargo build --release'
|
|
|
|
|
stash includes: 'target/release/telegram-leetbot', name: 'app'
|
2019-05-13 18:24:15 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-05-13 18:29:12 +00:00
|
|
|
|
|
|
|
|
post {
|
|
|
|
|
success {
|
2019-05-13 20:01:20 +00:00
|
|
|
unstash 'app'
|
|
|
|
|
|
2019-05-13 18:29:12 +00:00
|
|
|
archiveArtifacts artifacts: 'target/debug/telegram-leetbot', fingerprint: true
|
2019-05-13 19:37:46 +00:00
|
|
|
|
2019-05-13 19:43:57 +00:00
|
|
|
echo 'Starting docker image build'
|
2019-05-13 19:44:58 +00:00
|
|
|
script {
|
|
|
|
|
docker.build("northcode/telegram-leetbot")
|
|
|
|
|
}
|
2019-05-13 18:29:12 +00:00
|
|
|
}
|
|
|
|
|
}
|
2019-05-13 18:24:15 +00:00
|
|
|
}
|