Skip to content

Commit 1cabf1d

Browse files
committed
Create gradle-local.properties file in the root directory also
1 parent 2c48903 commit 1cabf1d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Jenkinsfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ def setupDockerMarkLogic(String image){
2323
MARKLOGIC_IMAGE='''+image+''' MARKLOGIC_LOGS_VOLUME=marklogicLogs docker compose up -d --build
2424
echo "mlPassword=admin" > gradle-local.properties
2525
echo "Waiting for MarkLogic server to initialize."
26-
sleep 30s
26+
sleep 60s
2727
cd ..
28+
echo "mlPassword=admin" > gradle-local.properties
2829
export GRADLE_USER_HOME=$WORKSPACE/$GRADLE_DIR
2930
export PATH=$GRADLE_USER_HOME:$JAVA_HOME/bin:$PATH
31+
./gradlew mlTestConnections
3032
./gradlew -i mlDeploy mlReloadSchemas
3133
'''
3234
}
@@ -201,6 +203,14 @@ pipeline{
201203
./gradlew publish
202204
'''
203205
}
206+
post{
207+
always{
208+
sh label:'dockerCleanup', script: '''#!/bin/bash
209+
cd java-client-api/test-app
210+
docker compose down -v || true
211+
'''
212+
}
213+
}
204214
}
205215

206216
stage('regressions-11.2.0') {

0 commit comments

Comments
 (0)