Skip to content

Commit

Permalink
[JENKINS-48711] - Allow exposing temporary directory to volume for di…
Browse files Browse the repository at this point in the history
…agnostics purposes
  • Loading branch information
oleg-nenashev committed Dec 29, 2017
1 parent 12b19a7 commit 3c5beda
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Expand Up @@ -54,5 +54,6 @@ EXPOSE 5005
VOLUME /pct/plugin-src
VOLUME /pct/jenkins.war
VOLUME /pct/out
VOLUME /pct/tmp
VOLUME /root/.m2
ENTRYPOINT ["run-pct"]
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -55,6 +55,7 @@ Volumes:
* `/pct/plugin-src` - Plugin sources to be used for the PCT run. Sources will be checked out if not specified
* `/pct/jenkins.war` - Jenkins WAR file to be used for the PCT run
* `/pct/out` - Output directory for PCT. All reports will be stored there
* `/pct/tmp` - Temporary directory. Can be exposed to analyze run failures
* `/root/.m2` - Maven repository. It can be used to pass settings.xml or to cache artifacts

### Running PCT manually
Expand Down
2 changes: 1 addition & 1 deletion src/main/docker/run-pct.sh
Expand Up @@ -46,7 +46,7 @@ if [ -f "${JENKINS_WAR_PATH}" ]; then
then
cd "${PCT_TMP}"
echo "Version is a snapshot, will install artifacts to the local maven repo"
mkdir "war-exploded"
mkdir -p "war-exploded"
unzip -q -c "jenkins.war" "WEB-INF/lib/jenkins-core-${JENKINS_VERSION}.jar" > "war-exploded/jenkins-core.jar"
# unzip -q -c "jenkins.war" "WEB-INF/lib/jenkins-cli-${JENKINS_VERSION}.jar" > "war-exploded/jenkins-cli.jar"
mvn org.apache.maven.plugins:maven-install-plugin:2.5:install-file -Dfile="jenkins.war"
Expand Down

0 comments on commit 3c5beda

Please sign in to comment.