@@ -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;'
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;mkdir -p $WORKSPACE$GRADLE_DIR;cp ~/.gradle/gradle.properties $WORKSPACE$GRADLE_DIR; '
321321 copyRPM ' Release' ,' 10.0-6'
322322 script{
323323 props = readProperties file :' data-hub/pipeline.properties' ;
@@ -329,7 +329,6 @@ void dh5Example() {
329329 export PATH=$JAVA_HOME/bin:$WORKSPACE$GRADLE_DIR:$PATH:$MAVEN_HOME/bin; \
330330 cd $WORKSPACE/data-hub/examples/dh-5-example; \
331331 rm -rf $WORKSPACE$GRADLE_DIR/caches; \
332- cp ~/.gradle/gradle.properties $WORKSPACE$GRADLE_DIR; \
333332 ./gradlew -i hubInit -Ptesting=true; \
334333 cp ../../marklogic-data-hub/gradle.properties .; \
335334 ./gradlew -i mlDeploy -Ptesting=true -PmlUsername=admin -PmlPassword=admin; \
@@ -342,7 +341,7 @@ void dh5Example() {
342341}
343342
344343void dhCustomHook () {
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;'
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;mkdir -p $WORKSPACE$GRADLE_DIR;cp ~/.gradle/gradle.properties $WORKSPACE$GRADLE_DIR; '
346345 copyRPM ' Release' ,' 10.0-6'
347346 script{
348347 props = readProperties file :' data-hub/pipeline.properties' ;
@@ -354,7 +353,6 @@ void dhCustomHook() {
354353 export PATH=$JAVA_HOME/bin:$WORKSPACE$GRADLE_DIR:$PATH:$MAVEN_HOME/bin; \
355354 cd $WORKSPACE/data-hub/examples/dhf5-custom-hook; \
356355 rm -rf $WORKSPACE$GRADLE_DIR/caches; \
357- cp ~/.gradle/gradle.properties $WORKSPACE$GRADLE_DIR;\
358356 ./gradlew -i hubInit -Ptesting=true; \
359357 cp ../../marklogic-data-hub/gradle.properties .; \
360358 ./gradlew -i mlDeploy -Ptesting=true -PmlUsername=admin -PmlPassword=admin; \
@@ -366,7 +364,7 @@ void dhCustomHook() {
366364}
367365
368366void mappingExample () {
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;'
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;mkdir -p $WORKSPACE$GRADLE_DIR;cp ~/.gradle/gradle.properties $WORKSPACE$GRADLE_DIR; '
370368 copyRPM ' Release' ,' 10.0-6'
371369 script{
372370 props = readProperties file :' data-hub/pipeline.properties' ;
@@ -378,7 +376,6 @@ void mappingExample() {
378376 export PATH=$JAVA_HOME/bin:$WORKSPACE$GRADLE_DIR:$PATH:$MAVEN_HOME/bin; \
379377 cd $WORKSPACE/data-hub/examples/mapping-example; \
380378 rm -rf $WORKSPACE$GRADLE_DIR/caches; \
381- cp ~/.gradle/gradle.properties $WORKSPACE$GRADLE_DIR; \
382379 ./gradlew -i hubInit -Ptesting=true; \
383380 cp ../../marklogic-data-hub/gradle.properties .; \
384381 ./gradlew -i mlDeploy -Ptesting=true -PmlUsername=admin -PmlPassword=admin; \
@@ -392,7 +389,7 @@ void mappingExample() {
392389}
393390
394391void smartMastering () {
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;'
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;mkdir -p $WORKSPACE$GRADLE_DIR;cp ~/.gradle/gradle.properties $WORKSPACE$GRADLE_DIR; '
396393 copyRPM ' Release' ,' 10.0-6'
397394 script{
398395 props = readProperties file :' data-hub/pipeline.properties' ;
@@ -404,7 +401,6 @@ void smartMastering() {
404401 export PATH=$JAVA_HOME/bin:$WORKSPACE$GRADLE_DIR:$PATH:$MAVEN_HOME/bin; \
405402 cd $WORKSPACE/data-hub/examples/smart-mastering-complete; \
406403 rm -rf $WORKSPACE$GRADLE_DIR/caches; \
407- cp ~/.gradle/gradle.properties $WORKSPACE$GRADLE_DIR; \
408404 ./gradlew -i hubInit -Ptesting=true; \
409405 cp ../../marklogic-data-hub/gradle.properties .; \
410406 ./gradlew -i mlDeploy -Ptesting=true -PmlUsername=admin -PmlPassword=admin; \
0 commit comments