Skip to content

Commit 0e8f1cf

Browse files
authored
Merge pull request #490 from SameeraPriyathamTadikonda/develop
PDP-450: gradle clean before running other tasks
2 parents 377332a + 1af407b commit 0e8f1cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Jenkinsfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ def runtests(String javaVersion){
88
cd marklogic-spark-connector
99
echo "Waiting for MarkLogic server to initialize."
1010
sleep 30s
11+
./gradlew clean
1112
./gradlew -i mlDeploy
1213
echo "Loading data a second time to try to avoid Optic bug with duplicate rows being returned."
1314
./gradlew -i mlLoadData
@@ -85,8 +86,9 @@ pipeline{
8586
export JAVA_HOME=$JAVA17_HOME_DIR
8687
export GRADLE_USER_HOME=$WORKSPACE/$GRADLE_DIR
8788
export PATH=$GRADLE_USER_HOME:$JAVA_HOME/bin:$PATH
88-
cp ~/.gradle/gradle.properties $GRADLE_USER_HOME;
8989
cd marklogic-spark-connector
90+
./gradlew clean
91+
cp ~/.gradle/gradle.properties $GRADLE_USER_HOME;
9092
./gradlew publish
9193
'''
9294
}

0 commit comments

Comments
 (0)