File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -14,17 +14,13 @@ build:
14
14
- install-packages :
15
15
packages : sudo maven exuberant-ctags cvs git mercurial cssc bzr subversion monotone rcs pep8
16
16
- script :
17
- name : Maven install
17
+ name : Create non-root user
18
18
code : |
19
19
/usr/sbin/groupadd -g 1000 foobar
20
20
/usr/sbin/useradd -u 1000 -g 1000 -s /bin/bash -m foobar
21
- echo $WERCKER_ROOT > /tmp/wroot
22
21
chown -R foobar:foobar $WERCKER_ROOT
23
- /usr/bin/sudo -i -u foobar -- bash -c 'cd `cat /tmp/wroot`; /usr/bin/mvn verify'
24
-
25
- # Ideally this should support running under non-root user:
26
- # # https://github.com/wercker/step-maven
27
- # - wercker/maven:
28
- # goals: install
29
- # cache_repo: true
30
- # version: 3.5.2
22
+
23
+ goals : install
24
+ cache_repo : true
25
+ sudo_user : foobar
26
+ version : 3.5.2
You can’t perform that action at this time.
0 commit comments