Skip to content

Commit

Permalink
ci: checkout repo to the config/ directory
Browse files Browse the repository at this point in the history
Instead of checking out the repo directly into the workspace, let's get
in the habit of checking it out into a subdirectory to keep things
clean.

This also helps code which look at the name of the directory in which
the repo is checked out, such as kola external host test handling.

This makes use of a new custom step:

coreos/coreos-ci-lib#40
  • Loading branch information
jlebon authored and dustymabe committed Oct 6, 2020
1 parent be947c2 commit d4e9435
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .cci.jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Documentation: https://github.com/coreos/coreos-ci/blob/master/README-upstream-ci.md

cosaPod {
checkout scm
checkoutToDir(scm, 'config')

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 d4e9435

Please sign in to comment.