Skip to content

Instantly share code, notes, and snippets.

@darkmuggle
Created October 19, 2020 20:23
Show Gist options
  • Save darkmuggle/677de1b544b995f7ca742269c36220e8 to your computer and use it in GitHub Desktop.
Save darkmuggle/677de1b544b995f7ca742269c36220e8 to your computer and use it in GitHub Desktop.
diff --git a/.cci.jenkinsfile b/.cci.jenkinsfile
index c04d27e4..3e840dce 100644
--- a/.cci.jenkinsfile
+++ b/.cci.jenkinsfile
@@ -1,15 +1,16 @@
// Documentation: https://github.com/coreos/coreos-ci/blob/master/README-upstream-ci.md
-pod(image: 'registry.fedoraproject.org/fedora:32', runAsUser: 0, kvm: true, memory: "10Gi") {
+stage("Build") {
+ openshiftBuild(bldCfg: 'cosa-ci-image-testing', showBuildLogs: true, verbose: true,
+ env[envVar(key: "SOURCE_URL", value: "${env.GIT_URL}",
+ envVar(key: "SOURCE_REF", value: "${env.GIT_REF}"])
+}
+
+pod(image: 'cosa-ci-image-testing:$<SOME VALUE>', kvm: true, memory: "10Gi") {
checkout scm
- stage("Build") {
- shwrap("""
- dnf install -y git
- git submodule update --init
- ./build.sh
- rpm -qa | sort > rpmdb.txt
- """)
+ stage("Check") {
+ shwrap("rpm -qa | sort > rpmdb.txt")
archiveArtifacts artifacts: 'rpmdb.txt'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment