2018-09-19 00:06:08 +00:00
|
|
|
pipeline {
|
2023-10-27 15:42:39 +00:00
|
|
|
agent {
|
|
|
|
// 'linux' is the (legacy) label used on ci.jenkins.io for "Docker Linux AMD64" while 'linux-amd64-docker' is the label used on infra.ci.jenkins.io
|
|
|
|
label 'linux || linux-amd64-docker'
|
|
|
|
}
|
2018-09-27 19:21:30 +00:00
|
|
|
|
|
|
|
options {
|
|
|
|
timeout(time: 1, unit: 'HOURS')
|
2018-10-12 02:51:12 +00:00
|
|
|
buildDiscarder(logRotator(daysToKeepStr: '10'))
|
2018-09-27 19:21:30 +00:00
|
|
|
timestamps()
|
2018-09-19 00:06:08 +00:00
|
|
|
}
|
2018-09-19 21:48:15 +00:00
|
|
|
|
2018-09-27 19:21:30 +00:00
|
|
|
triggers {
|
2018-10-12 02:47:13 +00:00
|
|
|
pollSCM('H * * * *')
|
2018-09-19 21:48:15 +00:00
|
|
|
}
|
|
|
|
|
2018-09-27 19:21:30 +00:00
|
|
|
stages {
|
|
|
|
stage('Build & test') {
|
|
|
|
steps {
|
|
|
|
sh 'make migrate check'
|
|
|
|
}
|
2023-10-27 15:42:39 +00:00
|
|
|
post {
|
|
|
|
success {
|
|
|
|
stash name: 'build', includes: 'build/**/*'
|
|
|
|
}
|
|
|
|
}
|
2018-09-19 21:48:15 +00:00
|
|
|
}
|
|
|
|
|
2024-02-12 18:56:03 +00:00
|
|
|
stage('Container') {
|
2018-09-27 19:21:30 +00:00
|
|
|
steps {
|
2024-02-12 18:56:03 +00:00
|
|
|
buildDockerAndPublishImage('uplink', [unstash: 'build', targetplatforms: 'linux/amd64,linux/arm64', disablePublication: !infra.isInfra()])
|
2018-09-19 21:48:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-09-19 00:06:08 +00:00
|
|
|
}
|
2018-09-27 19:21:30 +00:00
|
|
|
|
|
|
|
// vim: ft=groovy
|