forked from opensearch-project/opensearch-build-libraries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuildAssembleUpload_Jenkinsfile.txt
58 lines (58 loc) · 6.41 KB
/
BuildAssembleUpload_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
BuildAssembleUpload_Jenkinsfile.run()
BuildAssembleUpload_Jenkinsfile.pipeline(groovy.lang.Closure)
BuildAssembleUpload_Jenkinsfile.echo(Executing on agent [label:none])
BuildAssembleUpload_Jenkinsfile.stage(build and assemble, groovy.lang.Closure)
BuildAssembleUpload_Jenkinsfile.script(groovy.lang.Closure)
BuildAssembleUpload_Jenkinsfile.buildAssembleUpload({inputManifest=tests/data/opensearch-1.3.0.yml, platform=linux, architecture=x64, distribution=tar})
buildAssembleUpload.legacySCM(groovy.lang.Closure)
buildAssembleUpload.library({identifier=jenkins@main, retriever=null})
buildAssembleUpload.readYaml({file=tests/data/opensearch-1.3.0.yml})
InputManifest.asBoolean()
buildAssembleUpload.buildManifest({inputManifest=tests/data/opensearch-1.3.0.yml, platform=linux, architecture=x64, distribution=tar})
buildManifest.sh(./build.sh tests/data/opensearch-1.3.0.yml -d tar -p linux -a x64)
buildAssembleUpload.readYaml({file=tar/builds/opensearch/manifest.yml})
BuildManifest.asBoolean()
buildAssembleUpload.assembleUpload({inputManifest=tests/data/opensearch-1.3.0.yml, platform=linux, architecture=x64, distribution=tar, buildManifest=tar/builds/opensearch/manifest.yml})
assembleUpload.legacySCM(groovy.lang.Closure)
assembleUpload.library({identifier=jenkins@main, retriever=null})
assembleUpload.assembleManifest({inputManifest=tests/data/opensearch-1.3.0.yml, platform=linux, architecture=x64, distribution=tar, buildManifest=tar/builds/opensearch/manifest.yml})
assembleManifest.legacySCM(groovy.lang.Closure)
assembleManifest.library({identifier=jenkins@main, retriever=null})
assembleManifest.readYaml({file=tar/builds/opensearch/manifest.yml})
BuildManifest.asBoolean()
BuildManifest.getArtifactRootUrlWithoutDistribution(https://ci.opensearch.org/dbc, vars-build, 33)
assembleManifest.sh(./assemble.sh "tar/builds/opensearch/manifest.yml" --base-url https://ci.opensearch.org/dbc/vars-build/1.3.0/33/linux/x64)
assembleUpload.uploadArtifacts({inputManifest=tests/data/opensearch-1.3.0.yml, platform=linux, architecture=x64, distribution=tar, buildManifest=tar/builds/opensearch/manifest.yml})
uploadArtifacts.legacySCM(groovy.lang.Closure)
uploadArtifacts.library({identifier=jenkins@main, retriever=null})
uploadArtifacts.readYaml({file=tar/builds/opensearch/manifest.yml})
BuildManifest.asBoolean()
BuildManifest.getMinArtifact()
BuildManifest.getArtifactRoot(vars-build, 33)
uploadArtifacts.string({credentialsId=jenkins-artifact-bucket-name, variable=ARTIFACT_BUCKET_NAME})
uploadArtifacts.string({credentialsId=jenkins-artifact-production-bucket-name, variable=ARTIFACT_PRODUCTION_BUCKET_NAME})
uploadArtifacts.string({credentialsId=jenkins-aws-production-account, variable=AWS_ACCOUNT_ARTIFACT})
uploadArtifacts.string({credentialsId=jenkins-artifact-promotion-role, variable=ARTIFACT_PROMOTION_ROLE_NAME})
uploadArtifacts.withCredentials([ARTIFACT_BUCKET_NAME, ARTIFACT_PRODUCTION_BUCKET_NAME, AWS_ACCOUNT_ARTIFACT, ARTIFACT_PROMOTION_ROLE_NAME], groovy.lang.Closure)
uploadArtifacts.echo(Uploading to s3://artifact-bucket/vars-build/1.3.0/33/linux/x64/tar)
uploadArtifacts.uploadToS3({sourcePath=tar/builds, bucket=artifact-bucket, path=vars-build/1.3.0/33/linux/x64/tar/builds})
uploadToS3.string({credentialsId=jenkins-aws-account-public, variable=AWS_ACCOUNT_PUBLIC})
uploadToS3.withCredentials([AWS_ACCOUNT_PUBLIC], groovy.lang.Closure)
uploadToS3.withAWS({role=opensearch-bundle, roleAccount=account, duration=900, roleSessionName=jenkins-session}, groovy.lang.Closure)
uploadToS3.s3Upload({file=tar/builds, bucket=artifact-bucket, path=vars-build/1.3.0/33/linux/x64/tar/builds})
uploadArtifacts.uploadToS3({sourcePath=tar/dist, bucket=artifact-bucket, path=vars-build/1.3.0/33/linux/x64/tar/dist})
uploadToS3.string({credentialsId=jenkins-aws-account-public, variable=AWS_ACCOUNT_PUBLIC})
uploadToS3.withCredentials([AWS_ACCOUNT_PUBLIC], groovy.lang.Closure)
uploadToS3.withAWS({role=opensearch-bundle, roleAccount=account, duration=900, roleSessionName=jenkins-session}, groovy.lang.Closure)
uploadToS3.s3Upload({file=tar/dist, bucket=artifact-bucket, path=vars-build/1.3.0/33/linux/x64/tar/dist})
uploadArtifacts.echo(Uploading to s3://bucket/vars-build/1.3.0/33/linux/x64/tar)
uploadArtifacts.withAWS({role=role, roleAccount=dummy, duration=900, roleSessionName=jenkins-session}, groovy.lang.Closure)
uploadArtifacts.s3Upload({file=tar/builds/opensearch/dist/opensearch-min-1.3.0-linux-x64.tar.gz, bucket=bucket, path=release-candidates/core/opensearch/1.3.0/})
uploadArtifacts.s3Upload({file=tar/dist/opensearch/opensearch-1.3.0-linux-x64.tar.gz, bucket=bucket, path=release-candidates/bundle/opensearch/1.3.0/})
BuildManifest.getArtifactRootUrl(https://ci.opensearch.org/dbc, vars-build, 33)
Messages.asBoolean()
Messages.add(stage, https://ci.opensearch.org/dbc/vars-build/1.3.0/33/linux/x64/tar/builds/opensearch/manifest.yml
https://ci.opensearch.org/dbc/vars-build/1.3.0/33/linux/x64/tar/dist/opensearch/manifest.yml)
uploadArtifacts.writeFile({file=messages/stage.msg, text=https://ci.opensearch.org/dbc/vars-build/1.3.0/33/linux/x64/tar/builds/opensearch/manifest.yml
https://ci.opensearch.org/dbc/vars-build/1.3.0/33/linux/x64/tar/dist/opensearch/manifest.yml})
uploadArtifacts.stash({includes=messages/*, name=messages-stage})