Skip to content

Commit

Permalink
ci: checkout repo into 'config' subdirectory
Browse files Browse the repository at this point in the history
That way, the name of the directory is always 'config', which is what
the patterns in `kola-denylist.yaml` expects.
  • Loading branch information
jlebon committed Oct 6, 2020
1 parent 4a7272f commit d57a787
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .cci.jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
// Documentation: https://github.com/coreos/coreos-ci/blob/master/README-upstream-ci.md

cosaPod {
checkout scm
checkout([
$class: 'GitSCM',
branches: scm.branches,
extensions: scm.extensions + [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'config']],
userRemoteConfigs: scm.userRemoteConfigs
])

shwrap("ci/validate")
shwrap("cd config && ci/validate")

shwrap("""
mkdir -p /srv/fcos && cd /srv/fcos
cosa init ${env.WORKSPACE}
cosa init ${env.WORKSPACE}/config
curl -LO https://raw.githubusercontent.com/coreos/fedora-coreos-releng-automation/master/scripts/download-overrides.py
python3 download-overrides.py
# prep from the latest builds so that we generate a diff on PRs that add packages
Expand Down

0 comments on commit d57a787

Please sign in to comment.