Code Review
/
infra
/
cicd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
fbd236f
)
Add global wrapper to fix workspace permissions
45/345/3
author
Fatih Degirmenci
<fdegir@gmail.com>
Thu, 7 Feb 2019 09:58:44 +0000
(10:58 +0100)
committer
Fatih Degirmenci
<fdegir@gmail.com>
Thu, 7 Feb 2019 10:48:10 +0000
(11:48 +0100)
Change-Id: I94008deb3d62d0aa5b69d8aceeab5385a38d4cd3
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
jjb/global/jjb-macros.yaml
patch
|
blob
|
history
diff --git
a/jjb/global/jjb-macros.yaml
b/jjb/global/jjb-macros.yaml
index 9630a91753560a8999cbfd9ddcd0d78d8b9c03b3..f19761d780f364003fd3f44ea05462ed12b99b19 100644
(file)
--- a/
jjb/global/jjb-macros.yaml
+++ b/
jjb/global/jjb-macros.yaml
@@
-216,6
+216,17
@@
timeout-var: 'BUILD_TIMEOUT'
fail: true
+# wrapper to fix jenkins build workspace permissions
+- wrapper:
+ name: fix-workspace-permissions
+ wrappers:
+ - pre-scm-buildstep:
+ failOnError: true
+ buildsteps:
+ - shell: |
+ #!/bin/bash
+ sudo chown -R $USER:$USER $WORKSPACE || exit 1
+
- publisher:
name: notify-slack
publishers: