Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-50540] Make sure to copy hidden files (like .git) on custom …
…sources
  • Loading branch information
raul-arabaolaza committed Apr 26, 2018
1 parent f0d0ce7 commit 17058d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/docker/run-pct.sh
Expand Up @@ -3,7 +3,7 @@ set -e
set -x

if [ $# -eq 1 ]; then
# if `docker run` only has one argument, we assume that the user is running an alternate command
# if `docker run` only has one argument, we assume that the user is running an alternate command
# like `bash` to inspect the image. All options passed to the executable shoud have at least 2 arguments.
echo "Only one argument is specified, running a custom command"
exec "$@"
Expand Down Expand Up @@ -96,7 +96,7 @@ TMP_CHECKOUT_DIR="${PCT_TMP}/localCheckoutDir/undefined"
if [ -e "/pct/plugin-src/pom.xml" ] ; then
echo "Located custom plugin sources on the volume"
mkdir "${TMP_CHECKOUT_DIR}"
cp -R /pct/plugin-src/* "${TMP_CHECKOUT_DIR}/"
cp -r /pct/plugin-src/. "${TMP_CHECKOUT_DIR}"
# Due to whatever reason PCT blows up if you have work in the repo
cd "${TMP_CHECKOUT_DIR}" && mvn clean && rm -rf work
else
Expand Down

0 comments on commit 17058d7

Please sign in to comment.