Skip to content

Commit

Permalink
[DELETEME]
Browse files Browse the repository at this point in the history
Signed-off-by: Kawika Avilla <[email protected]>
  • Loading branch information
kavilla committed Feb 22, 2022
1 parent 2a0baec commit 8950881
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
32 changes: 16 additions & 16 deletions jenkins/opensearch-dashboards/distribution-build.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion jenkins/opensearch-dashboards/integ-test.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 10 additions & 10 deletions vars/publishNotification.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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(' '))
// }
}

0 comments on commit 8950881

Please sign in to comment.