ci: cd into the WORKDIR before running jenkins-jobs

The directory that gets constructed can be like
`/opt/build/deploy/..//jobs` and this causes jenkins-jobs to fail.
Enternig the WORKDIR and passing the local ./jobs directory to
jenkins-jobs makes things clearer.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-05-27 14:04:45 +02:00
parent 7a7d45cd67
commit 9ce8d20da9

View File

@ -2,7 +2,7 @@ WORKDIR ?= $(CURDIR)/../
OUTPUT ?= $(WORKDIR)/_output/
test:
jenkins-jobs test -o $(OUTPUT) $(WORKDIR)/jobs
cd $(WORKDIR) && jenkins-jobs test -o $(OUTPUT) jobs
deploy:
jenkins-jobs update $(WORKDIR)/jobs
cd $(WORKDIR) && jenkins-jobs update jobs