mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-26 08:10:20 +00:00
fe922b8805
It seems that regular jobs in the OpenShift environment fail with the
following error:
Missing GOARCH argument for building image, install Golang or run: make containerized-test GOARCH=amd64
This happens for both the `devel` and `test` image builds since December
13 when installing Golang in the container-images was added.
Fixes: 8a3fe53e
"ci: install arch specific go in Dockerfile.devel"
Signed-off-by: Niels de Vos <ndevos@redhat.com>
53 lines
1.6 KiB
YAML
53 lines
1.6 KiB
YAML
---
|
|
- job:
|
|
name: build-images
|
|
description: Build container images from the devel branch.
|
|
project-type: pipeline
|
|
concurrent: false
|
|
properties:
|
|
- github:
|
|
url: https://github.com/ceph/ceph-csi
|
|
- build-discarder:
|
|
days-to-keep: 7
|
|
artifact-days-to-keep: 7
|
|
# yamllint disable rule:line-length
|
|
dsl: |
|
|
def GIT_REPO = 'http://github.com/ceph/ceph-csi'
|
|
def GIT_BRANCH = 'devel'
|
|
node {
|
|
stage('checkout repository') {
|
|
git url: "${GIT_REPO}", branch: "${GIT_BRANCH}", changelog: false
|
|
}
|
|
stage('build images') {
|
|
def base_image = sh(script: 'source ${WORKSPACE}/build.env && echo ${BASE_IMAGE}',
|
|
returnStdout: true).trim()
|
|
parallel canary: {
|
|
sh "oc start-build --follow \
|
|
--build-arg=BASE_IMAGE='${base_image}' \
|
|
--build-arg=GO_ARCH=amd64 \
|
|
ceph-csi-canary"
|
|
},
|
|
test: {
|
|
sh 'oc start-build --follow \
|
|
--build-arg=GOARCH=amd64 \
|
|
ceph-csi-test'
|
|
},
|
|
devel: {
|
|
sh "oc start-build --follow \
|
|
--build-arg=BASE_IMAGE='${base_image}' \
|
|
--build-arg=GOARCH=amd64 \
|
|
ceph-csi-devel"
|
|
}
|
|
}
|
|
}
|
|
# yamllint enable rule:line-length
|
|
scm:
|
|
- git:
|
|
name: origin
|
|
url: https://github.com/ceph/ceph-csi
|
|
branches:
|
|
- devel
|
|
triggers:
|
|
- pollscm:
|
|
cron: "H/5 * * * *"
|