@@ -68,7 +68,7 @@ def getOssCiGroupWorker(ciGroup) {
6868 " CI_GROUP=${ ciGroup} " ,
6969 " JOB=kibana-ciGroup${ ciGroup} " ,
7070 ]) {
71- runbld " ./test/scripts/jenkins_ci_group.sh"
71+ runbld( " ./test/scripts/jenkins_ci_group.sh" , " Execute kibana-ciGroup ${ ciGroup } " )
7272 }
7373 })
7474}
@@ -79,7 +79,7 @@ def getXpackCiGroupWorker(ciGroup) {
7979 " CI_GROUP=${ ciGroup} " ,
8080 " JOB=xpack-kibana-ciGroup${ ciGroup} " ,
8181 ]) {
82- runbld " ./test/scripts/jenkins_xpack_ci_group.sh"
82+ runbld( " ./test/scripts/jenkins_xpack_ci_group.sh" , " Execute xpack-kibana-ciGroup ${ ciGroup } " )
8383 }
8484 })
8585}
@@ -93,7 +93,7 @@ def legacyJobRunner(name) {
9393 ]) {
9494 jobRunner(' linux && immutable' , false ) {
9595 try {
96- runbld(' .ci/run.sh' , true )
96+ runbld(' .ci/run.sh' , " Execute ${ name } " , true )
9797 } finally {
9898 catchError {
9999 uploadAllGcsArtifacts(name)
@@ -118,12 +118,15 @@ def jobRunner(label, useRamDisk, closure) {
118118 // Move to a temporary workspace, so that we can symlink the real workspace into /dev/shm
119119 def originalWorkspace = env. WORKSPACE
120120 ws(' /tmp/workspace' ) {
121- sh """
122- mkdir -p /dev/shm/workspace
123- mkdir -p '${ originalWorkspace} ' # create all of the directories leading up to the workspace, if they don't exist
124- rm --preserve-root -rf '${ originalWorkspace} ' # then remove just the workspace, just in case there's stuff in it
125- ln -s /dev/shm/workspace '${ originalWorkspace} '
126- """
121+ sh(
122+ script : """
123+ mkdir -p /dev/shm/workspace
124+ mkdir -p '${ originalWorkspace} ' # create all of the directories leading up to the workspace, if they don't exist
125+ rm --preserve-root -rf '${ originalWorkspace} ' # then remove just the workspace, just in case there's stuff in it
126+ ln -s /dev/shm/workspace '${ originalWorkspace} '
127+ """ ,
128+ label : " Move workspace to RAM - /dev/shm/workspace"
129+ )
127130 }
128131 }
129132
@@ -225,27 +228,33 @@ def sendKibanaMail() {
225228 }
226229}
227230
228- def bash (script ) {
229- sh " #!/bin/bash\n ${ script} "
231+ def bash (script , label ) {
232+ sh(
233+ script : " #!/bin/bash\n ${ script} " ,
234+ label : label
235+ )
230236}
231237
232238def doSetup () {
233- runbld " ./test/scripts/jenkins_setup.sh"
239+ runbld( " ./test/scripts/jenkins_setup.sh" , " Setup Build Environment and Dependencies " )
234240}
235241
236242def buildOss () {
237- runbld " ./test/scripts/jenkins_build_kibana.sh"
243+ runbld( " ./test/scripts/jenkins_build_kibana.sh" , " Build OSS/Default Kibana " )
238244}
239245
240246def buildXpack () {
241- runbld " ./test/scripts/jenkins_xpack_build_kibana.sh"
247+ runbld( " ./test/scripts/jenkins_xpack_build_kibana.sh" , " Build X-Pack Kibana " )
242248}
243249
244250def runErrorReporter () {
245- bash """
246- source src/dev/ci_setup/setup_env.sh
247- node scripts/report_failed_tests
248- """
251+ bash(
252+ """
253+ source src/dev/ci_setup/setup_env.sh
254+ node scripts/report_failed_tests
255+ """ ,
256+ " Report failed tests, if necessary"
257+ )
249258}
250259
251260return this
0 commit comments