File tree Expand file tree Collapse file tree 1 file changed +24
-13
lines changed Expand file tree Collapse file tree 1 file changed +24
-13
lines changed Original file line number Diff line number Diff line change 1
1
# This references an OpenJDK container from the
2
2
# 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
5
3
box : openjdk:8-jdk
6
4
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
+
10
12
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
14
13
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
You can’t perform that action at this time.
0 commit comments