Skip to content
Permalink
Browse files
This closes #22
  • Loading branch information
aledsage committed Sep 27, 2018
2 parents 2610f68 + 5122c6d commit bd0f52c3bf790f3e3cc9d01b2fb7fa7facb15c99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
@@ -39,15 +39,15 @@ node(label: 'ubuntu') {

stage('Run tests') {
environmentDockerImage.inside('-i --rm --name brooklyn-${DOCKER_TAG} -u 910:910 --mount type=bind,source="${HOME}/.m2/settings.xml",target=/var/maven/.m2/settings.xml,readonly -v ${WORKSPACE}:/usr/build -w /usr/build') {
sh 'mvn clean install -Duser.home=/var/maven -Duser.name=$(id -un 910)'
sh 'mvn clean install -Duser.home=/var/maven -Duser.name=jenkins'
}
}

// Conditional stage to deploy artifacts, when not building a PR
if (env.CHANGE_ID == null) {
stage('Deploy artifacts') {
environmentDockerImage.inside('-i --rm --name brooklyn-${DOCKER_TAG} -u 910:910 --mount type=bind,source="${HOME}/.m2/settings.xml",target=/var/maven/.m2/settings.xml,readonly -v ${WORKSPACE}:/usr/build -w /usr/build') {
sh 'mvn deploy -DskipTests -Duser.home=/var/maven -Duser.name=$(id -un 910)'
sh 'mvn deploy -DskipTests -Duser.home=/var/maven -Duser.name=jenkins'
}
}
}
@@ -49,8 +49,10 @@ docker run -i --rm --name brooklyn -u $(id -u):$(id -g) \
The results are in `brooklyn-dist/dist/target/`, including a tar and a zip.
Or to run straight after the build, do:

pushd brooklyn-dist/dist/target/brooklyn-dist/brooklyn/
bin/brooklyn launch
```bash
pushd brooklyn-dist/karaf/apache-brooklyn/target/assembly/
./bin/start
```


### Resources

0 comments on commit bd0f52c

Please sign in to comment.