Skip to content

Commit e913886

Browse files
DHFPROD-5879:updating ml versions
1 parent 851baca commit e913886

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

Jenkinsfile

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ pipeline{
102102
DMC_USER = credentials('MLBUILD_USER')
103103
DMC_PASSWORD= credentials('MLBUILD_PASSWORD')
104104
}
105-
parameters{
105+
parameters{
106106
string(name: 'Email', defaultValue: 'stadikon@marklogic.com,kkanthet@marklogic.com,sbalasub@marklogic.com,nshrivas@marklogic.com,ssambasu@marklogic.com,rrudin@marklogic.com,rdew@marklogic.com,aebadira@marklogic.com,mwooldri@marklogic.com', description: 'Who should I say send the email to?')
107107
}
108108
stages{
@@ -159,7 +159,7 @@ pipeline{
159159
def email;
160160
if(env.CHANGE_AUTHOR){
161161
def author=env.CHANGE_AUTHOR.toString().trim().toLowerCase()
162-
email=getEmailFromGITUser author
162+
email=getEmailFromGITUser author
163163
}else{
164164
email=Email
165165
}
@@ -173,7 +173,7 @@ pipeline{
173173
steps{
174174
script{
175175
props = readProperties file:'data-hub/pipeline.properties';
176-
copyRPM 'Release','10.0-3'
176+
copyRPM 'Release','10.0-4.4'
177177
setUpML '$WORKSPACE/xdmp/src/Mark*.rpm'
178178
sh 'export JAVA_HOME=`eval echo "$JAVA_HOME_DIR"`;export GRADLE_USER_HOME=$WORKSPACE$GRADLE_DIR;export M2_HOME=$MAVEN_HOME/bin;export PATH=$GRADLE_USER_HOME:$PATH:$MAVEN_HOME/bin;cd $WORKSPACE/data-hub;rm -rf $GRADLE_USER_HOME/caches;set +e;./gradlew clean;./gradlew marklogic-data-hub:test || true;sleep 10s;./gradlew ml-data-hub:test || true;./gradlew web:test || true;'
179179
junit '**/TEST-*.xml'
@@ -209,7 +209,7 @@ pipeline{
209209
def email;
210210
if(env.CHANGE_AUTHOR){
211211
def author=env.CHANGE_AUTHOR.toString().trim().toLowerCase()
212-
email=getEmailFromGITUser author
212+
email=getEmailFromGITUser author
213213
}else{
214214
email=Email
215215
}
@@ -245,7 +245,7 @@ pipeline{
245245
emailList+=email+',';
246246
}
247247
sendMail emailList,'Check the Pipeline View Here: ${JENKINS_URL}/blue/organizations/jenkins/Datahub_CI/detail/$JOB_BASE_NAME/$BUILD_ID \n\n\n Check Console Output Here: ${BUILD_URL}/console \n\n\n $BRANCH_NAME is waiting for the code-review to complete. Please click on proceed button if all the reviewers approved the code here. \n\n ${BUILD_URL}input ',false,'Waiting for code review $BRANCH_NAME '
248-
248+
249249
}
250250
}
251251
try{
@@ -297,7 +297,7 @@ pipeline{
297297
emailList+=email+',';
298298
}
299299
sendMail emailList,'Check the Pipeline View Here: ${JENKINS_URL}/blue/organizations/jenkins/Datahub_CI/detail/$JOB_BASE_NAME/$BUILD_ID \n\n\n Check Console Output Here: ${BUILD_URL}/console \n\n\n $BRANCH_NAME is waiting for the code-review to complete. Please click on proceed button if all the reviewers approved the code here. \n\n ${BUILD_URL}input ',false,'Waiting for code review $BRANCH_NAME '
300-
300+
301301
}
302302
sleep time: 30, unit: 'MINUTES'
303303
throw new Exception("Waiting for all the status checks to pass");
@@ -326,15 +326,15 @@ pipeline{
326326
println("Merge Successful")
327327
script{
328328
def author=env.CHANGE_AUTHOR.toString().trim().toLowerCase()
329-
def email=getEmailFromGITUser author
329+
def email=getEmailFromGITUser author
330330
sendMail email,'Check the Pipeline View Here: ${JENKINS_URL}/blue/organizations/jenkins/Datahub_CI/detail/$JOB_BASE_NAME/$BUILD_ID \n\n\n Check Console Output Here: ${BUILD_URL}/console \n\n\n $BRANCH_NAME is merged and it will run the end to end tests in the next stage',false,' $BRANCH_NAME is Merged'
331331
}
332332
}
333333
failure {
334334
println("Retried 5times")
335335
script{
336336
def author=env.CHANGE_AUTHOR.toString().trim().toLowerCase()
337-
def email=getEmailFromGITUser author
337+
def email=getEmailFromGITUser author
338338
sendMail email,'Check the Pipeline View Here: ${JENKINS_URL}/blue/organizations/jenkins/Datahub_CI/detail/$JOB_BASE_NAME/$BUILD_ID \n\n\n Check Console Output Here: ${BUILD_URL}/console \n\n\n $BRANCH_NAME is not merged into the target branch. Please check the merge status of the PR if there are any merge conflicts or if the code is not reviewed. \n\n Click on the link Restart PR below to retry merge if the merge state is clean i.e., Code is reviewed and there are no merge conflicts with the target branch. \n\n ${JENKINS_URL}/blue/organizations/jenkins/Datahub_CI/detail/$JOB_BASE_NAME/$BUILD_ID',false,' $BRANCH_NAME Cannot be Merged'
339339
}
340340
}
@@ -352,7 +352,7 @@ pipeline{
352352
steps{
353353
script{
354354
props = readProperties file:'data-hub/pipeline.properties';
355-
copyRPM 'Release','9.0-12'
355+
copyRPM 'Release','9.0-11'
356356
setUpML '$WORKSPACE/xdmp/src/Mark*.rpm'
357357
sh 'export JAVA_HOME=`eval echo "$JAVA_HOME_DIR"`;export GRADLE_USER_HOME=$WORKSPACE$GRADLE_DIR;export M2_HOME=$MAVEN_HOME/bin;export PATH=$GRADLE_USER_HOME:$PATH:$MAVEN_HOME/bin;cd $WORKSPACE/data-hub;rm -rf $GRADLE_USER_HOME/caches;./gradlew clean;set +e;./gradlew marklogic-data-hub:test -Dorg.gradle.jvmargs=-Xmx1g || true;sleep 10s;./gradlew ml-data-hub:test || true;sleep 10s;./gradlew web:test || true;sleep 10s;./gradlew marklogic-data-hub:testBootstrap || true;sleep 10s;./gradlew ml-data-hub:testFullCycle || true;'
358358
junit '**/TEST-*.xml'
@@ -373,7 +373,7 @@ pipeline{
373373
success {
374374
println("End-End Tests Completed")
375375
sendMail Email,'Check the Pipeline View Here: ${JENKINS_URL}/blue/organizations/jenkins/Datahub_CI/detail/$JOB_BASE_NAME/$BUILD_ID \n\n\n Check Console Output Here: ${BUILD_URL}/console \n\n\n All the End to End tests of the branch $BRANCH_NAME passed and the next stage is to run all the end-end tests on multiple platforms in parallel',false,'rh7-singlenode Tests for $BRANCH_NAME Passed'
376-
376+
377377
}
378378
unstable {
379379
println("End-End Tests Failed")
@@ -435,7 +435,7 @@ pipeline{
435435
}
436436
stage('rh7_cluster_9.0-11'){
437437
agent { label 'dhfLinuxAgent'}
438-
steps{
438+
steps{
439439
dhflinuxTests("9.0-11","Release")
440440
}
441441
post{
@@ -452,40 +452,40 @@ pipeline{
452452
}
453453
}
454454
}
455-
stage('rh7_cluster_9.0-12'){
455+
stage('rh7_cluster_9.0-13'){
456456
agent { label 'dhfLinuxAgent'}
457457
steps{
458-
dhflinuxTests("9.0-12","Release")
458+
dhflinuxTests("9.0-13","Release")
459459
}
460460
post{
461461
always{
462462
sh 'rm -rf $WORKSPACE/xdmp'
463463
}
464464
success {
465-
println("rh7_cluster_9.0-12 Tests Completed")
465+
println("rh7_cluster_9.0-13 Tests Completed")
466466
sendMail Email,'Check the Pipeline View Here: ${JENKINS_URL}/blue/organizations/jenkins/Datahub_CI/detail/$JOB_BASE_NAME/$BUILD_ID \n\n\n Check Console Output Here: ${BUILD_URL}/console \n\n\n All the End to End tests on rh7 cluster 9.0-12 of the branch $BRANCH_NAME passed and the next stage is to merge it to release branch if all the end-end tests pass',false,'rh7_cluster_9.0-12 Tests for $BRANCH_NAME Passed'
467467
}
468468
unstable {
469-
println("rh7_cluster_9.0-12 Tests Failed")
469+
println("rh7_cluster_9.0-13 Tests Failed")
470470
sendMail Email,'Check the Pipeline View Here: ${JENKINS_URL}/blue/organizations/jenkins/Datahub_CI/detail/$JOB_BASE_NAME/$BUILD_ID \n\n\n Check Console Output Here: ${BUILD_URL}/console \n\n\n Some of the End to End tests of the branch $BRANCH_NAME on 9.0-12 rh7 cluster failed. Please fix the tests and create a PR or create a bug for the failures.',false,'rh7_cluster_9.0-12 Tests for $BRANCH_NAME Failed'
471471
}
472472
}
473473
}
474-
stage('rh7_cluster_10.0-3'){
474+
stage('rh7_cluster_10.0-4'){
475475
agent { label 'dhfLinuxAgent'}
476476
steps{
477-
dhflinuxTests("10.0-3","Release");
477+
dhflinuxTests("10.0-4.4","Release");
478478
}
479479
post{
480480
always{
481481
sh 'rm -rf $WORKSPACE/xdmp'
482482
}
483483
success {
484-
println("rh7_cluster_10.0-3 Tests Completed")
484+
println("rh7_cluster_10.0-4 Tests Completed")
485485
sendMail Email,'Check the Pipeline View Here: ${JENKINS_URL}/blue/organizations/jenkins/Datahub_CI/detail/$JOB_BASE_NAME/$BUILD_ID \n\n\n Check Console Output Here: ${BUILD_URL}/console \n\n\n All the End to End tests on rh7 cluster 10.0-3 of the branch $BRANCH_NAME passed and the next stage is to merge it to release branch if all the end-end tests pass',false,'rh7_cluster_10.0-3 Tests for $BRANCH_NAME Passed'
486486
}
487487
unstable {
488-
println("rh7_cluster_10.0-3 Tests Failed")
488+
println("rh7_cluster_10.0-4 Tests Failed")
489489
sendMail Email,'Check the Pipeline View Here: ${JENKINS_URL}/blue/organizations/jenkins/Datahub_CI/detail/$JOB_BASE_NAME/$BUILD_ID \n\n\n Check Console Output Here: ${BUILD_URL}/console \n\n\n Some of the End to End tests of the branch $BRANCH_NAME on 10.0-3 rh7 cluster failed. Please fix the tests and create a PR or create a bug for the failures.',false,'rh7_cluster_10.0-3 Tests for $BRANCH_NAME Failed'
490490
}
491491
}
@@ -514,7 +514,7 @@ pipeline{
514514
agent { label 'dhfLinuxAgent'}
515515
steps{
516516
sh 'cd $WORKSPACE/data-hub/examples/dh-5-example;repo=" maven {url \'http://distro.marklogic.com/nexus/repository/maven-snapshots/\'}";sed -i "/repositories {/a$repo" build.gradle; '
517-
copyRPM 'Release','10.0-3'
517+
copyRPM 'Release','10.0-4.4'
518518
script{
519519
props = readProperties file:'data-hub/pipeline.properties';
520520
def dockerhost=setupMLDockerCluster 3
@@ -551,7 +551,7 @@ pipeline{
551551
agent { label 'dhfLinuxAgent'}
552552
steps{
553553
sh 'cd $WORKSPACE/data-hub/examples/dhf5-custom-hook;repo=" maven {url \'http://distro.marklogic.com/nexus/repository/maven-snapshots/\'}";sed -i "/repositories {/a$repo" build.gradle; '
554-
copyRPM 'Release','10.0-3'
554+
copyRPM 'Release','10.0-4.4'
555555
script{
556556
props = readProperties file:'data-hub/pipeline.properties';
557557
def dockerhost=setupMLDockerCluster 3
@@ -589,7 +589,7 @@ pipeline{
589589
agent { label 'dhfLinuxAgent'}
590590
steps{
591591
sh 'cd $WORKSPACE/data-hub/examples/mapping-example;repo=" maven {url \'http://distro.marklogic.com/nexus/repository/maven-snapshots/\'}";sed -i "/repositories {/a$repo" build.gradle; '
592-
copyRPM 'Release','10.0-3'
592+
copyRPM 'Release','10.0-4.4'
593593
script{
594594
props = readProperties file:'data-hub/pipeline.properties';
595595
def dockerhost=setupMLDockerCluster 3
@@ -627,7 +627,7 @@ pipeline{
627627
agent { label 'dhfLinuxAgent'}
628628
steps{
629629
sh 'cd $WORKSPACE/data-hub/examples/smart-mastering-complete;repo=" maven {url \'http://distro.marklogic.com/nexus/repository/maven-snapshots/\'}";sed -i "/repositories {/a$repo" build.gradle; '
630-
copyRPM 'Release','10.0-3'
630+
copyRPM 'Release','10.0-4.4'
631631
script{
632632
props = readProperties file:'data-hub/pipeline.properties';
633633
def dockerhost=setupMLDockerCluster 3
@@ -727,7 +727,7 @@ pipeline{
727727
stage('qs_rh7_10-release'){
728728
agent { label 'lnx-dhf-jenkins-slave-2'}
729729
steps{
730-
dhfqsLinuxTests("10.0-3","Release")
730+
dhfqsLinuxTests("10.0-4.4","Release")
731731
}
732732
post{
733733

@@ -792,30 +792,30 @@ pipeline{
792792
}
793793
}
794794
}
795-
stage('w12_SN_9.0-12'){
795+
stage('w12_SN_9.0-11'){
796796
agent { label 'dhfWinagent'}
797797
steps{
798-
dhfWinTests("9.0-12","Release")
798+
dhfWinTests("9.0-11","Release")
799799
}
800800
post{
801801
always{
802802
bat 'RMDIR /S/Q xdmp'
803803
}
804804
success {
805-
println("w12_SN_9.0-12 Tests Completed")
805+
println("w12_SN_9.0-11 Tests Completed")
806806
sendMail Email,'Check the Pipeline View Here: ${JENKINS_URL}/blue/organizations/jenkins/Datahub_CI/detail/$JOB_BASE_NAME/$BUILD_ID \n\n\n Check Console Output Here: ${BUILD_URL}/console \n\n\n All the End to End tests on W2k12 SN 9.0-12 of the branch $BRANCH_NAME passed and the next stage is to merge it to release branch if all the end-end tests pass',false,'w12_SN_9.0-12 Tests for $BRANCH_NAME Passed'
807807
}
808808
unstable {
809-
println("w12_SN_9.0-12 Tests Failed")
809+
println("w12_SN_9.0-11 Tests Failed")
810810
sendMail Email,'Check the Pipeline View Here: ${JENKINS_URL}/blue/organizations/jenkins/Datahub_CI/detail/$JOB_BASE_NAME/$BUILD_ID \n\n\n Check Console Output Here: ${BUILD_URL}/console \n\n\n Some of the End to End tests of the branch $BRANCH_NAME on 9.0-12 w2k12 SN failed. Please fix the tests and create a PR or create a bug for the failures.',false,'w12_SN_9.0-12 Tests for $BRANCH_NAME Failed'
811811
}
812812
}
813813
}
814-
stage('w12_cluster_10.0-3'){
814+
stage('w12_cluster_10.0-4'){
815815
agent { label 'dhfWinCluster'}
816816
steps{
817817
script{
818-
copyMSI "Release","10.0-3";
818+
copyMSI "Release","10.0-4.4";
819819
def pkgOutput=bat(returnStdout:true , script: '''
820820
cd xdmp/src
821821
for /f "delims=" %%a in ('dir /s /b *.msi') do set "name=%%~a"
@@ -849,11 +849,11 @@ pipeline{
849849
sh 'rm -rf $WORKSPACE/xdmp'
850850
}
851851
success {
852-
println("w12_cluster_10.0-3 Tests Completed")
852+
println("w12_cluster_10.0-4 Tests Completed")
853853
sendMail Email,'Check the Pipeline View Here: ${JENKINS_URL}/blue/organizations/jenkins/Datahub_CI/detail/$JOB_BASE_NAME/$BUILD_ID \n\n\n Check Console Output Here: ${BUILD_URL}/console \n\n\n All the End to End tests on W2k12 cluster 10.0-3 of the branch $BRANCH_NAME passed and the next stage is to merge it to release branch if all the end-end tests pass',false,'w12_cluster_10.0-3 Tests for $BRANCH_NAME Passed'
854854
}
855855
unstable {
856-
println("w12_cluster_10.0-3 Tests Failed")
856+
println("w12_cluster_10.0-4 Tests Failed")
857857
sendMail Email,'Check the Pipeline View Here: ${JENKINS_URL}/blue/organizations/jenkins/Datahub_CI/detail/$JOB_BASE_NAME/$BUILD_ID \n\n\n Check Console Output Here: ${BUILD_URL}/console \n\n\n Some of the End to End tests of the branch $BRANCH_NAME on 10.0-3 w2k12 cluster failed. Please fix the tests and create a PR or create a bug for the failures.',false,'w12_cluster_10.0-3 Tests for $BRANCH_NAME Failed'
858858
}
859859
}
@@ -902,7 +902,7 @@ pipeline{
902902
post{
903903
success {
904904
println("Automated PR For Release branch created")
905-
905+
906906
}
907907
failure {
908908
println("Creation of Automated PR Failed")
@@ -921,7 +921,7 @@ pipeline{
921921
steps{
922922
script{
923923
props = readProperties file:'data-hub/pipeline.properties';
924-
copyRPM 'Release','10.0-3'
924+
copyRPM 'Release','10.0-4.4'
925925
setUpML '$WORKSPACE/xdmp/src/Mark*.rpm'
926926
sh 'export JAVA_HOME=`eval echo "$JAVA_HOME_DIR"`;export GRADLE_USER_HOME=$WORKSPACE$GRADLE_DIR;export M2_HOME=$MAVEN_HOME/bin;export PATH=$GRADLE_USER_HOME:$PATH:$MAVEN_HOME/bin;cd $WORKSPACE/data-hub;rm -rf $GRADLE_USER_HOME/caches;./gradlew clean;./gradlew clean;./gradlew marklogic-data-hub:test || true;sleep 10s;./gradlew ml-data-hub:test || true;sleep 10s;./gradlew web:test || true;'
927927
junit '**/TEST-*.xml'

0 commit comments

Comments
 (0)