From 8950881746e21e19c1ba190feaadd6175795f677 Mon Sep 17 00:00:00 2001 From: Kawika Avilla Date: Tue, 22 Feb 2022 02:06:51 +0000 Subject: [PATCH] [DELETEME] Signed-off-by: Kawika Avilla --- .../distribution-build.jenkinsfile | 32 +++++++++---------- .../integ-test.jenkinsfile | 2 +- vars/publishNotification.groovy | 20 ++++++------ 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/jenkins/opensearch-dashboards/distribution-build.jenkinsfile b/jenkins/opensearch-dashboards/distribution-build.jenkinsfile index 9e755743f5..4ce4229fd1 100644 --- a/jenkins/opensearch-dashboards/distribution-build.jenkinsfile +++ b/jenkins/opensearch-dashboards/distribution-build.jenkinsfile @@ -3,7 +3,7 @@ lib = library(identifier: 'jenkins@20211123', retriever: legacySCM(scm)) pipeline { options { timeout(time: 3, unit: 'HOURS') - copyArtifactPermission("${JOB_NAME}") + copyArtifactPermission("avillk-distribution-build-opensearch-dashboards") buildDiscarder(logRotator(artifactNumToKeepStr: '1')) } agent none @@ -168,22 +168,22 @@ pipeline { } } } - stage('docker build') { - steps { - node(AGENT_X64) { - script { - echo "env.ARTIFACT_URL_X64: ${env.ARTIFACT_URL_X64}" - echo "env.ARTIFACT_URL_ARM64: ${env.ARTIFACT_URL_ARM64}" + // stage('docker build') { + // steps { + // node(AGENT_X64) { + // script { + // echo "env.ARTIFACT_URL_X64: ${env.ARTIFACT_URL_X64}" + // echo "env.ARTIFACT_URL_ARM64: ${env.ARTIFACT_URL_ARM64}" - buildDockerImage( - inputManifest: "manifests/${INPUT_MANIFEST}", - artifactUrlX64: env.ARTIFACT_URL_X64, - artifactUrlArm64: env.ARTIFACT_URL_ARM64 - ) - } - } - } - } + // buildDockerImage( + // inputManifest: "manifests/${INPUT_MANIFEST}", + // artifactUrlX64: env.ARTIFACT_URL_X64, + // artifactUrlArm64: env.ARTIFACT_URL_ARM64 + // ) + // } + // } + // } + // } } post { success { diff --git a/jenkins/opensearch-dashboards/integ-test.jenkinsfile b/jenkins/opensearch-dashboards/integ-test.jenkinsfile index a2892f48ee..f3355a27d4 100644 --- a/jenkins/opensearch-dashboards/integ-test.jenkinsfile +++ b/jenkins/opensearch-dashboards/integ-test.jenkinsfile @@ -87,7 +87,7 @@ pipeline { echo "BUILD_ID: ${BUILD_ID}" runIntegTestScript( - jobName: JOB_NAME, + jobName: "Playground/avillk-distribution-build-opensearch-dashboards", buildManifest: BUILD_MANIFEST, testManifest: TEST_MANIFEST, buildId: BUILD_ID diff --git a/vars/publishNotification.groovy b/vars/publishNotification.groovy index c38eb6b11e..e98e350176 100644 --- a/vars/publishNotification.groovy +++ b/vars/publishNotification.groovy @@ -5,14 +5,14 @@ void call(Map args = [:]) { args.manifest, args.extra ] - null).join("\n") - - withCredentials([string(credentialsId: args.credentialsId, variable: 'WEBHOOK_URL')]) { - sh ([ - 'curl', - '-XPOST', - '--header "Content-Type: application/json"', - "--data '{\"result_text\":\"${text}\"}'", - "\"${WEBHOOK_URL}\"" - ].join(' ')) - } + echo(text) + // withCredentials([string(credentialsId: args.credentialsId, variable: 'WEBHOOK_URL')]) { + // sh ([ + // 'curl', + // '-XPOST', + // '--header "Content-Type: application/json"', + // "--data '{\"result_text\":\"${text}\"}'", + // "\"${WEBHOOK_URL}\"" + // ].join(' ')) + // } }