From 8b577d4106941a0bd8e2de5732d0e7406bb80ef2 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Sat, 9 Dec 2017 17:27:56 +0000 Subject: [PATCH] Change to the executor workdir during npm upload When using npm to install locally, it wants to write a node_modules tree in the current path. Since the default path of a command is the path where the playbook resides and this is not writeable on a zuul executor, change to the writeable workdir first. Change-Id: Ib4f632c0b9e3f5842e3cd649b6ca7ecb8042e7e3 --- roles/upload-npm/tasks/main.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/upload-npm/tasks/main.yaml b/roles/upload-npm/tasks/main.yaml index 133a769ba..4358ab91b 100644 --- a/roles/upload-npm/tasks/main.yaml +++ b/roles/upload-npm/tasks/main.yaml @@ -13,6 +13,8 @@ version: v0.33.5 - name: Upload tarball to npm + args: + chdir: "{{ zuul.executor.work_root }}" shell: executable: /bin/bash cmd: |