JIRA: DOVETAIL-377
workspace wipe clean error log
https://build.opnfv.org/ci/job/dovetail-compass-virtual-debug-master/365/console
this is caused of wrong permissions with files under $WORKSPACE
seems the former method in dovetail-run not take effects(log into host, it's still root:root,
not $USER:$USER_GROUP)
use global fix workspace permission in wrapper to replace former method
Change-Id: I6ceaaf630590666f3b3db5f2628334879df2b8fb
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
- 'dovetail-cleanup'
- 'dovetail-run'
- 'dovetail-cleanup'
- 'dovetail-run'
+ wrappers:
+ - fix-workspace-permissions
+
publishers:
- archive:
artifacts: 'results/**/*'
allow-empty: true
fingerprint: true
publishers:
- archive:
artifacts: 'results/**/*'
allow-empty: true
fingerprint: true
-########################
+#--------------------------
-########################
+#--------------------------
- builder:
name: dovetail-run
builders:
- builder:
name: dovetail-run
builders:
docker exec $container_id ${run_cmd}
sudo cp -r ${DOVETAIL_REPO_DIR}/results ./
docker exec $container_id ${run_cmd}
sudo cp -r ${DOVETAIL_REPO_DIR}/results ./
-#To make sure the file owner is the current user, for the copied results files in the above line
-#if not, there will be error when next time to wipe workspace
-CURRENT_USER=${SUDO_USER:-$USER}
-PRIMARY_GROUP=$(id -gn $CURRENT_USER)
-sudo chown -R ${CURRENT_USER}:${PRIMARY_GROUP} ${WORKSPACE}/results
+# To make sure the file owner is the current user, for the copied results files in the above line
+# if not, there will be error when next time to wipe workspace
+# CURRENT_USER=${SUDO_USER:-$USER}
+# PRIMARY_GROUP=$(id -gn $CURRENT_USER)
+# sudo chown -R ${CURRENT_USER}:${PRIMARY_GROUP} ${WORKSPACE}/results
- 'dovetail-cleanup'
- 'dovetail-run'
- 'dovetail-cleanup'
- 'dovetail-run'
+ wrappers:
+ - fix-workspace-permissions
+
publishers:
- archive:
artifacts: 'results/**/*'
publishers:
- archive:
artifacts: 'results/**/*'