@@ -317,7 +317,7 @@ void BuildDatahub(){
317317}
318318
319319void dh5Example () {
320- sh ' cd $WORKSPACE/data-hub/examples/dh-5-example;repo="maven {";url="url \' https://nexus.marklogic.com/repository/maven-snapshots/\' ";protocal="allowInsecureProtocol = true}";cred="credentials {";uname="username mavenUser";pass="password mavenPassword }";sed -i "/repositories {/a$protocal" build.gradle;sed -i "/repositories {/a$url" build.gradle;sed -i "/repositories {/a$pass" build.gradle;sed -i "/repositories {/a$uname" build.gradle;sed -i "/repositories {/a$cred" build.gradle;sed -i "/repositories {/a$repo" build.gradle;cp ~/.gradle/gradle.properties $GRADLE_USER_HOME; '
320+ sh ' cd $WORKSPACE/data-hub/examples/dh-5-example;repo="maven {";url="url \' https://nexus.marklogic.com/repository/maven-snapshots/\' ";protocal="allowInsecureProtocol = true}";cred="credentials {";uname="username mavenUser";pass="password mavenPassword }";sed -i "/repositories {/a$protocal" build.gradle;sed -i "/repositories {/a$url" build.gradle;sed -i "/repositories {/a$pass" build.gradle;sed -i "/repositories {/a$uname" build.gradle;sed -i "/repositories {/a$cred" build.gradle;sed -i "/repositories {/a$repo" build.gradle;'
321321 copyRPM ' Release' ,' 10.0-6'
322322 script{
323323 props = readProperties file :' data-hub/pipeline.properties' ;
@@ -329,6 +329,7 @@ void dh5Example() {
329329 export PATH=$JAVA_HOME/bin:$GRADLE_USER_HOME:$PATH:$MAVEN_HOME/bin; \
330330 cd $WORKSPACE/data-hub/examples/dh-5-example; \
331331 rm -rf $GRADLE_USER_HOME/caches; \
332+ cp ~/.gradle/gradle.properties $GRADLE_USER_HOME; \
332333 ./gradlew -i hubInit -Ptesting=true; \
333334 cp ../../marklogic-data-hub/gradle.properties .; \
334335 ./gradlew -i mlDeploy -Ptesting=true -PmlUsername=admin -PmlPassword=admin; \
@@ -341,7 +342,7 @@ void dh5Example() {
341342}
342343
343344void dhCustomHook () {
344- sh ' cd $WORKSPACE/data-hub/examples/dhf5-custom-hook;repo="maven {";url="url \' https://nexus.marklogic.com/repository/maven-snapshots/\' ";protocal="allowInsecureProtocol = true}";cred="credentials {";uname="username mavenUser";pass="password mavenPassword }";sed -i "/repositories {/a$protocal" build.gradle;sed -i "/repositories {/a$url" build.gradle;sed -i "/repositories {/a$pass" build.gradle;sed -i "/repositories {/a$uname" build.gradle;sed -i "/repositories {/a$cred" build.gradle;sed -i "/repositories {/a$repo" build.gradle;cp ~/.gradle/gradle.properties $GRADLE_USER_HOME; '
345+ sh ' cd $WORKSPACE/data-hub/examples/dhf5-custom-hook;repo="maven {";url="url \' https://nexus.marklogic.com/repository/maven-snapshots/\' ";protocal="allowInsecureProtocol = true}";cred="credentials {";uname="username mavenUser";pass="password mavenPassword }";sed -i "/repositories {/a$protocal" build.gradle;sed -i "/repositories {/a$url" build.gradle;sed -i "/repositories {/a$pass" build.gradle;sed -i "/repositories {/a$uname" build.gradle;sed -i "/repositories {/a$cred" build.gradle;sed -i "/repositories {/a$repo" build.gradle;'
345346 copyRPM ' Release' ,' 10.0-6'
346347 script{
347348 props = readProperties file :' data-hub/pipeline.properties' ;
@@ -353,6 +354,7 @@ void dhCustomHook() {
353354 export PATH=$JAVA_HOME/bin:$GRADLE_USER_HOME:$PATH:$MAVEN_HOME/bin; \
354355 cd $WORKSPACE/data-hub/examples/dhf5-custom-hook; \
355356 rm -rf $GRADLE_USER_HOME/caches; \
357+ cp ~/.gradle/gradle.properties $GRADLE_USER_HOME;\
356358 ./gradlew -i hubInit -Ptesting=true; \
357359 cp ../../marklogic-data-hub/gradle.properties .; \
358360 ./gradlew -i mlDeploy -Ptesting=true -PmlUsername=admin -PmlPassword=admin; \
@@ -364,7 +366,7 @@ void dhCustomHook() {
364366}
365367
366368void mappingExample () {
367- sh ' cd $WORKSPACE/data-hub/examples/mapping-example;repo="maven {";url="url \' https://nexus.marklogic.com/repository/maven-snapshots/\' ";protocal="allowInsecureProtocol = true}";cred="credentials {";uname="username mavenUser";pass="password mavenPassword }";sed -i "/repositories {/a$protocal" build.gradle;sed -i "/repositories {/a$url" build.gradle;sed -i "/repositories {/a$pass" build.gradle;sed -i "/repositories {/a$uname" build.gradle;sed -i "/repositories {/a$cred" build.gradle;sed -i "/repositories {/a$repo" build.gradle;cp ~/.gradle/gradle.properties $GRADLE_USER_HOME; '
369+ sh ' cd $WORKSPACE/data-hub/examples/mapping-example;repo="maven {";url="url \' https://nexus.marklogic.com/repository/maven-snapshots/\' ";protocal="allowInsecureProtocol = true}";cred="credentials {";uname="username mavenUser";pass="password mavenPassword }";sed -i "/repositories {/a$protocal" build.gradle;sed -i "/repositories {/a$url" build.gradle;sed -i "/repositories {/a$pass" build.gradle;sed -i "/repositories {/a$uname" build.gradle;sed -i "/repositories {/a$cred" build.gradle;sed -i "/repositories {/a$repo" build.gradle;'
368370 copyRPM ' Release' ,' 10.0-6'
369371 script{
370372 props = readProperties file :' data-hub/pipeline.properties' ;
@@ -376,6 +378,7 @@ void mappingExample() {
376378 export PATH=$JAVA_HOME/bin:$GRADLE_USER_HOME:$PATH:$MAVEN_HOME/bin; \
377379 cd $WORKSPACE/data-hub/examples/mapping-example; \
378380 rm -rf $GRADLE_USER_HOME/caches; \
381+ cp ~/.gradle/gradle.properties $GRADLE_USER_HOME; \
379382 ./gradlew -i hubInit -Ptesting=true; \
380383 cp ../../marklogic-data-hub/gradle.properties .; \
381384 ./gradlew -i mlDeploy -Ptesting=true -PmlUsername=admin -PmlPassword=admin; \
@@ -389,7 +392,7 @@ void mappingExample() {
389392}
390393
391394void smartMastering () {
392- sh ' cd $WORKSPACE/data-hub/examples/smart-mastering-complete;repo="maven {";url="url \' https://nexus.marklogic.com/repository/maven-snapshots/\' ";protocal="allowInsecureProtocol = true}";cred="credentials {";uname="username mavenUser";pass="password mavenPassword }";sed -i "/repositories {/a$protocal" build.gradle;sed -i "/repositories {/a$url" build.gradle;sed -i "/repositories {/a$pass" build.gradle;sed -i "/repositories {/a$uname" build.gradle;sed -i "/repositories {/a$cred" build.gradle;sed -i "/repositories {/a$repo" build.gradle;cp ~/.gradle/gradle.properties $GRADLE_USER_HOME; '
395+ sh ' cd $WORKSPACE/data-hub/examples/smart-mastering-complete;repo="maven {";url="url \' https://nexus.marklogic.com/repository/maven-snapshots/\' ";protocal="allowInsecureProtocol = true}";cred="credentials {";uname="username mavenUser";pass="password mavenPassword }";sed -i "/repositories {/a$protocal" build.gradle;sed -i "/repositories {/a$url" build.gradle;sed -i "/repositories {/a$pass" build.gradle;sed -i "/repositories {/a$uname" build.gradle;sed -i "/repositories {/a$cred" build.gradle;sed -i "/repositories {/a$repo" build.gradle;'
393396 copyRPM ' Release' ,' 10.0-6'
394397 script{
395398 props = readProperties file :' data-hub/pipeline.properties' ;
@@ -401,6 +404,7 @@ void smartMastering() {
401404 export PATH=$JAVA_HOME/bin:$GRADLE_USER_HOME:$PATH:$MAVEN_HOME/bin; \
402405 cd $WORKSPACE/data-hub/examples/smart-mastering-complete; \
403406 rm -rf $GRADLE_USER_HOME/caches; \
407+ cp ~/.gradle/gradle.properties $GRADLE_USER_HOME; \
404408 ./gradlew -i hubInit -Ptesting=true; \
405409 cp ../../marklogic-data-hub/gradle.properties .; \
406410 ./gradlew -i mlDeploy -Ptesting=true -PmlUsername=admin -PmlPassword=admin; \
0 commit comments