fix workspace permission error 11/35911/1
authorMatthewLi <matthew.lijun@huawei.com>
Thu, 8 Jun 2017 02:50:55 +0000 (22:50 -0400)
committerMatthewLi <matthew.lijun@huawei.com>
Thu, 8 Jun 2017 02:52:50 +0000 (22:52 -0400)
after https://gerrit.opnfv.org/gerrit/#/c/35833/ merged

still fails https://build.opnfv.org/ci/job/compass-verify-deploy-virtual-xenial-master/360/console

by checking the host the file was changed to <jenkins root>
it should be <jenkins jenkins>

Change-Id: I44bab9aaedaa18fc2c2b654bf156703904c220c7
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
jjb/global/releng-macros.yml

index ced335c..5341db4 100644 (file)
         - pre-scm-buildstep:
           - shell: |
                 #!/bin/bash
-                sudo chown -R $USER $WORKSPACE || exit 1
+                sudo chown -R $USER:$USER $WORKSPACE || exit 1
 
 - builder:
     name: build-html-and-pdf-docs-output