Skip to content

Commit 267ea92

Browse files
author
Vladimir Kotal
committed
use the new Maven plugin to supply user
1 parent b4ca60c commit 267ea92

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

wercker.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,13 @@ build:
1414
- install-packages:
1515
packages: sudo maven exuberant-ctags cvs git mercurial cssc bzr subversion monotone rcs pep8
1616
- script:
17-
name: Maven install
17+
name: Create non-root user
1818
code: |
1919
/usr/sbin/groupadd -g 1000 foobar
2020
/usr/sbin/useradd -u 1000 -g 1000 -s /bin/bash -m foobar
21-
echo $WERCKER_ROOT > /tmp/wroot
2221
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+
- wercker/[email protected]:
23+
goals: install
24+
cache_repo: true
25+
sudo_user: foobar
26+
version: 3.5.2

0 commit comments

Comments
 (0)