Skip to content

Commit

Permalink
vars/utils: add compat symlink from /srv/fcos to /srv/coreos
Browse files Browse the repository at this point in the history
Commit 3719f69 ("tree: drop FCOS wording from various places") broke
multiple upstream CI jobs which still reference the old location. We
need to temporarily support both locations as we migrate them.

Add a compat symlink.
  • Loading branch information
jlebon committed Oct 13, 2022
1 parent fdcf3ee commit 8dc6b0c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vars/cosaBuild.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ def call(params = [:]) {

shwrap("mkdir -p ${cosaDir}")

// if the cosa dir is the default, also add a symlink from /srv/fcos
// for backwards compatibility
shwrap("""
if [ ${cosaDir} = /srv/coreos ]; then
ln -s coreos /srv/fcos
fi
""")

if (!params['skipInit']) {
def branchArg = ""
if (params['gitBranch']) {
Expand Down

0 comments on commit 8dc6b0c

Please sign in to comment.