25 lines
387 B
Groovy
25 lines
387 B
Groovy
pipeline {
|
|
agent { docker { image 'rust' } }
|
|
stages {
|
|
stage('build') {
|
|
steps {
|
|
sh 'cargo build'
|
|
}
|
|
}
|
|
}
|
|
|
|
post {
|
|
success {
|
|
archiveArtifacts artifacts: 'target/debug/telegram-leetbot', fingerprint: true
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
node {
|
|
|
|
echo 'Starting docker image build'
|
|
|
|
docker.build("northcode/telegram-leetbot")
|
|
}
|