2019-05-13 18:24:15 +00:00
|
|
|
pipeline {
|
|
|
|
|
agent { docker { image 'rust' } }
|
|
|
|
|
stages {
|
|
|
|
|
stage('build') {
|
|
|
|
|
steps {
|
|
|
|
|
sh 'cargo build'
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-05-13 19:28:57 +00:00
|
|
|
stage('docker') {
|
2019-05-13 19:29:51 +00:00
|
|
|
steps {
|
2019-05-13 19:33:26 +00:00
|
|
|
echo 'Starting docker image build'
|
|
|
|
|
|
|
|
|
|
script {
|
|
|
|
|
docker.build("northcode/telegram-leetbot")
|
|
|
|
|
}
|
2019-05-13 19:29:51 +00:00
|
|
|
}
|
2019-05-13 19:28:57 +00:00
|
|
|
}
|
2019-05-13 18:24:15 +00:00
|
|
|
}
|
2019-05-13 18:29:12 +00:00
|
|
|
|
|
|
|
|
post {
|
|
|
|
|
success {
|
|
|
|
|
archiveArtifacts artifacts: 'target/debug/telegram-leetbot', fingerprint: true
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-05-13 18:24:15 +00:00
|
|
|
}
|