From 9ce8d20da9a632c7817fbbbd05677915c43b92b2 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Wed, 27 May 2020 14:04:45 +0200 Subject: [PATCH] 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 --- deploy/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/Makefile b/deploy/Makefile index 7df588e3f..c7b2e1ca0 100644 --- a/deploy/Makefile +++ b/deploy/Makefile @@ -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