File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 172
172
# Store the command as an array because $MVN variable might have spaces in it.
173
173
# Normal quoting tricks don't work.
174
174
# See: http://mywiki.wooledge.org/BashFAQ/050
175
- BUILD_COMMAND=(" $MVN " -T 1C $MAYBE_CLEAN package -DskipTests $@ )
175
+ if [[ -z " $DONT_BUILD " ]]; then
176
+ BUILD_COMMAND=(" $MVN " -T 1C $MAYBE_CLEAN package -DskipTests $@ )
176
177
177
- # Actually build the jar
178
- echo -e " \nBuilding with..."
179
- echo -e " \$ ${BUILD_COMMAND[@]} \n"
178
+ # Actually build the jar
179
+ echo -e " \nBuilding with..."
180
+ echo -e " \$ ${BUILD_COMMAND[@]} \n"
180
181
181
- " ${BUILD_COMMAND[@]} "
182
+ " ${BUILD_COMMAND[@]} "
183
+ else
184
+ echo -e " \nNot running mvn package because \$ DONT_BUILD was set"
185
+ fi
182
186
183
187
# Make directories
184
188
rm -rf " $DISTDIR "
Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ FWDIR="$(cd "`dirname "${BASH_SOURCE[0]}"`"; pwd)"
7
7
source " $FWDIR /publish_functions.sh"
8
8
9
9
publish_artifacts | tee -a " /tmp/publish_artifacts.log"
10
- make_dist " ${PALANTIR_FLAGS[*]} " | tee -a " /tmp/make-dist.log"
10
+ DONT_BUILD=true make_dist " ${PALANTIR_FLAGS[*]} " | tee -a " /tmp/make-dist.log"
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ publish_artifacts() {
21
21
echo " <password>$BINTRAY_PASSWORD </password>" >> $tmp_settings
22
22
echo " </server></servers></settings>" >> $tmp_settings
23
23
24
- ./build/mvn --settings $tmp_settings -DskipTests " ${PALANTIR_FLAGS[@]} " deploy
24
+ ./build/mvn -T 1C - -settings $tmp_settings -DskipTests " ${PALANTIR_FLAGS[@]} " deploy
25
25
}
26
26
27
27
make_dist () {
You can’t perform that action at this time.
0 commit comments