forked from opensearch-project/opensearch-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPromoteArtifacts_actions_OpenSearch_Dashboards_Jenkinsfile.txt
63 lines (61 loc) · 6.16 KB
/
PromoteArtifacts_actions_OpenSearch_Dashboards_Jenkinsfile.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
PromoteArtifacts_actions_OpenSearch_Dashboards_Jenkinsfile.run()
PromoteArtifacts_actions_OpenSearch_Dashboards_Jenkinsfile.pipeline(groovy.lang.Closure)
PromoteArtifacts_actions_OpenSearch_Dashboards_Jenkinsfile.echo(Executing on agent [label:none])
PromoteArtifacts_actions_OpenSearch_Dashboards_Jenkinsfile.stage(promote, groovy.lang.Closure)
PromoteArtifacts_actions_OpenSearch_Dashboards_Jenkinsfile.script(groovy.lang.Closure)
PromoteArtifacts_actions_OpenSearch_Dashboards_Jenkinsfile.createSha512Checksums()
PromoteArtifacts_actions_OpenSearch_Dashboards_Jenkinsfile.createSignatureFiles()
createSignatureFiles.legacySCM(groovy.lang.Closure)
createSignatureFiles.library({identifier=jenkins@20211123, retriever=null})
PromoteArtifacts_actions_OpenSearch_Dashboards_Jenkinsfile.promoteArtifacts({manifest=tests/jenkins/data/opensearch-dashboards-1.2.0.yml, fileActions=[groovy.lang.Closure, groovy.lang.Closure]})
promoteArtifacts.legacySCM(groovy.lang.Closure)
promoteArtifacts.library({identifier=jenkins@20211123, retriever=null})
promoteArtifacts.readYaml({file=tests/jenkins/data/opensearch-dashboards-1.2.0.yml})
InputManifest.asBoolean()
promoteArtifacts.withAWS({role=downloadRoleName, roleAccount=publicAccount, duration=900, roleSessionName=jenkins-session}, groovy.lang.Closure)
promoteArtifacts.s3Download({bucket=artifact-bucket, file=workspace/artifacts, path=vars-build/1.2.0/33/linux/x64/, force=true})
promoteArtifacts.readYaml({file=artifacts/vars-build/1.2.0/33/linux/x64/builds/opensearch-dashboards/manifest.yml})
promoteArtifacts.fileExists(workspace/artifacts/vars-build/1.2.0/33/linux/x64/builds/opensearch-dashboards/core-plugins)
createSha512Checksums.sh({script=find workspace/artifacts/vars-build/1.2.0/33/linux/x64/builds/opensearch-dashboards/plugins -type f, returnStdout=true})
createSha512Checksums.echo(Not generating sha for bbb in workspace/artifacts/vars-build/1.2.0/33/linux/x64/builds/opensearch-dashboards/plugins, doesn't match allowed types [.tar.gz, .zip])
createSha512Checksums.echo(Not generating sha for ccc in workspace/artifacts/vars-build/1.2.0/33/linux/x64/builds/opensearch-dashboards/plugins, doesn't match allowed types [.tar.gz, .zip])
createSignatureFiles.signArtifacts({sigtype=.sig, artifactPath=workspace/artifacts/vars-build/1.2.0/33/linux/x64/builds/opensearch-dashboards/plugins})
signArtifacts.fileExists(workspace/sign.sh)
signArtifacts.git({url=https://github.com/opensearch-project/opensearch-build.git, branch=main})
signArtifacts.sh(curl -sSL https://artifacts.opensearch.org/publickeys/opensearch.pgp | gpg --import -)
signArtifacts.usernamePassword({credentialsId=github_bot_token_name, usernameVariable=GITHUB_USER, passwordVariable=GITHUB_TOKEN})
signArtifacts.withCredentials([[GITHUB_USER, GITHUB_TOKEN]], groovy.lang.Closure)
signArtifacts.sh(
#!/bin/bash
set +x
export ROLE=dummy_signer_client_role
export EXTERNAL_ID=signer_client_external_id
export UNSIGNED_BUCKET=signer_client_unsigned_bucket
export SIGNED_BUCKET=signer_client_signed_bucket
workspace/sign.sh workspace/artifacts/vars-build/1.2.0/33/linux/x64/builds/opensearch-dashboards/plugins --sigtype=.sig
)
promoteArtifacts.findFiles({glob=**/opensearch-dashboards-min-1.2.0*.tar.gz,**/opensearch-dashboards-1.2.0*.tar.gz})
promoteArtifacts.getPath()
createSha512Checksums.sh({script=find workspace/workspace/file/found.zip -type f, returnStdout=true})
createSha512Checksums.echo(Not generating sha for bbb in workspace/workspace/file/found.zip, doesn't match allowed types [.tar.gz, .zip])
createSha512Checksums.echo(Not generating sha for ccc in workspace/workspace/file/found.zip, doesn't match allowed types [.tar.gz, .zip])
promoteArtifacts.findFiles({glob=**/opensearch-dashboards-min-1.2.0*.tar.gz,**/opensearch-dashboards-1.2.0*.tar.gz})
promoteArtifacts.getPath()
createSignatureFiles.signArtifacts({sigtype=.sig, artifactPath=workspace/workspace/file/found.zip})
signArtifacts.fileExists(workspace/sign.sh)
signArtifacts.git({url=https://github.com/opensearch-project/opensearch-build.git, branch=main})
signArtifacts.sh(curl -sSL https://artifacts.opensearch.org/publickeys/opensearch.pgp | gpg --import -)
signArtifacts.usernamePassword({credentialsId=github_bot_token_name, usernameVariable=GITHUB_USER, passwordVariable=GITHUB_TOKEN})
signArtifacts.withCredentials([[GITHUB_USER, GITHUB_TOKEN]], groovy.lang.Closure)
signArtifacts.sh(
#!/bin/bash
set +x
export ROLE=dummy_signer_client_role
export EXTERNAL_ID=signer_client_external_id
export UNSIGNED_BUCKET=signer_client_unsigned_bucket
export SIGNED_BUCKET=signer_client_signed_bucket
workspace/sign.sh workspace/workspace/file/found.zip --sigtype=.sig
)
promoteArtifacts.withAWS({role=artifactPromotionRole, roleAccount=artifactsAccount, duration=900, roleSessionName=jenkins-session}, groovy.lang.Closure)
promoteArtifacts.s3Upload({bucket=prod-bucket-name, path=releases/core/opensearch-dashboards/1.2.0/, workingDir=workspace/artifacts/vars-build/1.2.0/33/linux/x64/builds/opensearch-dashboards/dist/, includePathPattern=**/opensearch-dashboards-min-1.2.0*})
promoteArtifacts.s3Upload({bucket=prod-bucket-name, path=releases/bundle/opensearch-dashboards/1.2.0/, workingDir=workspace/artifacts/vars-build/1.2.0/33/linux/x64/dist/opensearch-dashboards/, includePathPattern=**/opensearch-dashboards-1.2.0*})