Skip to content

Commit b4ca60c

Browse files
author
Vladimir Kotal
committed
fix Wercker build
1 parent f0dfbd7 commit b4ca60c

File tree

1 file changed

+24
-13
lines changed

1 file changed

+24
-13
lines changed

wercker.yml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,30 @@
11
# This references an OpenJDK container from the
22
# Docker Hub https://hub.docker.com/_/openjdk/
3-
# Read more about containers on our dev center
4-
# http://devcenter.wercker.com/docs/containers/index.html
53
box: openjdk:8-jdk
64

7-
# This is the build pipeline. Pipelines are the core of wercker
8-
# Read more about pipelines on our dev center
9-
# http://devcenter.wercker.com/docs/pipelines/index.html
5+
# This should switch to Oracle JDK however does not work:
6+
#box:
7+
# id: store/oracle/serverjre
8+
# username: $DOCKER_USERNAME
9+
# password: $DOCKER_PASSWORD
10+
# tag: 8
11+
1012
build:
11-
# Steps make up the actions in your pipeline
12-
# Read more about steps on our dev center:
13-
# http://devcenter.wercker.com/docs/steps/index.html
1413
steps:
15-
# https://github.com/wercker/step-maven
16-
- wercker/maven:
17-
goals: install
18-
cache_repo: true
19-
version: 3.5.2
14+
- install-packages:
15+
packages: sudo maven exuberant-ctags cvs git mercurial cssc bzr subversion monotone rcs pep8
16+
- script:
17+
name: Maven install
18+
code: |
19+
/usr/sbin/groupadd -g 1000 foobar
20+
/usr/sbin/useradd -u 1000 -g 1000 -s /bin/bash -m foobar
21+
echo $WERCKER_ROOT > /tmp/wroot
22+
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

0 commit comments

Comments
 (0)