Skip to content

Commit ecc68a5

Browse files
committed
Merge branch 'ubuntu-jammy' into merge-jammy
2 parents 978d83b + 6f0784f commit ecc68a5

12 files changed

Lines changed: 76 additions & 35 deletions

ci/pipelines/builder.yml

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1+
anchors:
2+
ci_bot:
3+
email: &ci_bot_email bots@cloudfoundry.org
4+
name: &ci_bot_name CI Bot
5+
16
#@ load("@ytt:data", "data")
7+
28
#@yaml/text-templated-strings
39

410
groups:
@@ -256,9 +262,9 @@ jobs:
256262
- usn-log/usn-log.json
257263
rename: (@= data.values.stemcell_details.branch @)/(@= data.values.stemcell_details.os_name @).meta4
258264
options:
259-
author_email: ci@localhost
260-
author_name: CI Bot
261-
message: '[ci skip] bump OS image'
265+
author_email: *ci_bot_email
266+
author_name: *ci_bot_name
267+
message: 'Bump os-image tgz'
262268
version: version/version
263269
- put: os-image-version
264270
params:
@@ -493,8 +499,8 @@ jobs:
493499
- stemcell/*.tgz
494500
rename: "{{.Version}}/(@= IAAS @)-(@= HYPERVISOR @)(@= FIPS @).meta4"
495501
options:
496-
author_email: ci@localhost
497-
author_name: CI Bot
502+
author_email: *ci_bot_email
503+
author_name: *ci_bot_name
498504
message: 'dev: (@= data.values.stemcell_details.os_name @)'
499505
version: candidate-build-number/number
500506
#@ end
@@ -627,7 +633,10 @@ jobs:
627633
- task: commit-build-time
628634
file: bosh-stemcells-ci/ci/tasks/commit-build-time.yml
629635
image: os-image-stemcell-builder-registry-image
630-
#@ if len(data.values.stemcell_details.include_fips_iaas) > 0:
636+
params:
637+
GIT_USER_EMAIL: *ci_bot_email
638+
GIT_USER_NAME: *ci_bot_name
639+
#@ if len(data.values.stemcell_details.include_fips_iaas) > 0:
631640
- task: copy-fips-artifacts
632641
file: bosh-stemcells-ci/ci/tasks/publish.yml
633642
image: bosh-integration-image
@@ -647,7 +656,9 @@ jobs:
647656
TO_INDEX: candidate
648657
AWS_ENDPOINT: "https://storage.googleapis.com"
649658
S3_API_ENDPOINT: storage.googleapis.com
650-
#@ end
659+
GIT_USER_EMAIL: *ci_bot_email
660+
GIT_USER_NAME: *ci_bot_name
661+
#@ end
651662
- task: copy-artifacts
652663
file: bosh-stemcells-ci/ci/tasks/publish.yml
653664
image: bosh-integration-image
@@ -667,6 +678,8 @@ jobs:
667678
TO_INDEX: candidate
668679
AWS_ENDPOINT: "https://storage.googleapis.com"
669680
S3_API_ENDPOINT: storage.googleapis.com
681+
GIT_USER_EMAIL: *ci_bot_email
682+
GIT_USER_NAME: *ci_bot_name
670683
- in_parallel:
671684
- put: bosh-linux-stemcell-builder-push-tags
672685
no_get: true
@@ -753,8 +766,8 @@ jobs:
753766
output_mapping:
754767
output-repo: bosh-linux-stemcell-builder
755768
params:
756-
GIT_USER_NAME: CI Bot
757-
GIT_USER_EMAIL: bots@cloudfoundry.org
769+
GIT_USER_EMAIL: *ci_bot_email
770+
GIT_USER_NAME: *ci_bot_name
758771
PACKAGE: ruby-((.:ruby_version))
759772
VENDOR: true
760773
- task: test-unit
@@ -817,6 +830,9 @@ jobs:
817830
- task: bump
818831
file: bosh-stemcells-ci/ci/tasks/bump-bosh-agent.yml
819832
image: bosh-integration-image
833+
params:
834+
GIT_USER_EMAIL: *ci_bot_email
835+
GIT_USER_NAME: *ci_bot_name
820836
- put: bosh-linux-stemcell-builder-push
821837
params:
822838
rebase: true
@@ -837,6 +853,8 @@ jobs:
837853
image: bosh-integration-image
838854
params:
839855
BLOBSTORE_TYPE: (@= blobstore_type @)
856+
GIT_USER_EMAIL: *ci_bot_email
857+
GIT_USER_NAME: *ci_bot_name
840858
- put: bosh-linux-stemcell-builder-push
841859
params:
842860
rebase: true

ci/pipelines/publisher.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,11 @@ ensure:
230230

231231
#@yaml/text-templated-strings
232232
---
233+
anchors:
234+
ci_bot:
235+
email: &ci_bot_email bots@cloudfoundry.org
236+
name: &ci_bot_name CI Bot
237+
233238
groups:
234239
- name: all
235240
jobs:
@@ -379,8 +384,8 @@ jobs:
379384
files:
380385
- light-stemcell/*.tgz
381386
options:
382-
author_email: ci@localhost
383-
author_name: CI Bot
387+
author_email: *ci_bot_email
388+
author_name: *ci_bot_name
384389
message: 'candidate (light aws): (@= data.values.stemcell_details.os_name @)/(@= str(data.values.stemcell_details.major_version) @).x'
385390
version: us-input-stemcell/.resource/version
386391
put: candidate-aws-light-(@= data.values.stemcell_details.os_name @)-stemcell-(@= str(data.values.stemcell_details.major_version) @)
@@ -416,8 +421,8 @@ jobs:
416421
files:
417422
- light-stemcell/*.tgz
418423
options:
419-
author_email: ci@localhost
420-
author_name: CI Bot
424+
author_email: *ci_bot_email
425+
author_name: *ci_bot_name
421426
message: 'candidate (light google): (@= data.values.stemcell_details.os_name @)/(@= str(data.values.stemcell_details.major_version) @).x'
422427
version: stemcell/.resource/version
423428
put: candidate-google-light-(@= data.values.stemcell_details.os_name @)-stemcell-(@= str(data.values.stemcell_details.major_version) @)
@@ -487,8 +492,8 @@ jobs:
487492
files:
488493
- candidate-(@= data.values.stemcell_details.os_name @)-stemcell-(@= str(data.values.stemcell_details.major_version) @)/*.tgz
489494
options:
490-
author_email: ci@localhost
491-
author_name: CI Bot
495+
author_email: *ci_bot_email
496+
author_name: *ci_bot_name
492497
message: 'publish (heavy): (@= data.values.stemcell_details.os_name @)/(@= str(data.values.stemcell_details.major_version) @).x'
493498
rename: '{{.Version}}/stemcells.meta4'
494499
version: candidate-(@= data.values.stemcell_details.os_name @)-stemcell-(@= str(data.values.stemcell_details.major_version) @)/.resource/version
@@ -498,8 +503,8 @@ jobs:
498503
files:
499504
- candidate-(@= data.values.stemcell_details.os_name @)-fips-stemcell-(@= str(data.values.stemcell_details.major_version) @)/*.tgz
500505
options:
501-
author_email: ci@localhost
502-
author_name: CI Bot
506+
author_email: *ci_bot_email
507+
author_name: *ci_bot_name
503508
message: 'publish (heavy): (@= data.values.stemcell_details.os_name @)-fips/(@= str(data.values.stemcell_details.major_version) @).x'
504509
rename: '{{.Version}}/stemcells.meta4'
505510
version: candidate-(@= data.values.stemcell_details.os_name @)-fips-stemcell-(@= str(data.values.stemcell_details.major_version) @)/.resource/version
@@ -508,8 +513,8 @@ jobs:
508513
files:
509514
- candidate-aws-light-stemcell/*.tgz
510515
options:
511-
author_email: ci@localhost
512-
author_name: CI Bot
516+
author_email: *ci_bot_email
517+
author_name: *ci_bot_name
513518
message: 'publish (light aws): (@= data.values.stemcell_details.os_name @)/(@= str(data.values.stemcell_details.major_version) @).x'
514519
rename: '{{.Version}}/stemcells.aws.meta4'
515520
version: candidate-aws-light-stemcell/.resource/version
@@ -542,8 +547,8 @@ jobs:
542547
files:
543548
- candidate-google-light-(@= data.values.stemcell_details.os_name @)-stemcell-(@= str(data.values.stemcell_details.major_version) @)/*.tgz
544549
options:
545-
author_email: ci@localhost
546-
author_name: CI Bot
550+
author_email: *ci_bot_email
551+
author_name: *ci_bot_name
547552
message: 'publish (light google): (@= data.values.stemcell_details.os_name @)/(@= str(data.values.stemcell_details.major_version) @).x'
548553
rename: '{{.Version}}/stemcells.gcp.meta4'
549554
version: candidate-google-light-(@= data.values.stemcell_details.os_name @)-stemcell-(@= str(data.values.stemcell_details.major_version) @)/.resource/version

ci/tasks/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,6 @@ cat "$meta4_path"
135135
cd "${REPO_PARENT}/stemcells-index-output"
136136

137137
git add -A
138-
git config --global user.email "ci@localhost"
139-
git config --global user.name "CI Bot"
138+
git config --global user.email "${GIT_USER_EMAIL}"
139+
git config --global user.name "${GIT_USER_NAME}"
140140
git commit -m "dev: ${OS_NAME}-${OS_VERSION}/${CANDIDATE_BUILD_NUMBER} ($IAAS-$HYPERVISOR)"

ci/tasks/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ params:
2828
S3_API_ENDPOINT: s3.amazonaws.com
2929
ESM_TOKEN:
3030
AGENT_SUFFIX: -go_agent
31+
GIT_USER_EMAIL:
32+
GIT_USER_NAME:

ci/tasks/bump-bosh-agent.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ cp "${REPO_PARENT}/bosh-agent/.resource/version" \
2323
pushd "${REPO_PARENT}/bosh-linux-stemcell-builder-out"
2424
if [ "$(git status --porcelain)" != "" ]; then
2525
git add -A
26-
git config --global user.email "ci@localhost"
27-
git config --global user.name "CI Bot"
26+
git config --global user.email "${GIT_USER_EMAIL}"
27+
git config --global user.name "${GIT_USER_NAME}"
2828
git commit -m "bump bosh-agent/$version"
2929
fi
3030
popd

ci/tasks/bump-bosh-agent.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ outputs:
1313

1414
run:
1515
path: bosh-stemcells-ci/ci/tasks/bump-bosh-agent.sh
16+
17+
params:
18+
GIT_USER_EMAIL:
19+
GIT_USER_NAME:

ci/tasks/bump-bosh-blobstore-cli.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ echo "${sha256sum}" > \
2626
pushd "${REPO_PARENT}/bosh-linux-stemcell-builder-out"
2727
if [ "$(git status --porcelain)" != "" ]; then
2828
git add -A
29-
git config --global user.email "ci@localhost"
30-
git config --global user.name "CI Bot"
29+
git config --global user.email "${GIT_USER_EMAIL}"
30+
git config --global user.name "${GIT_USER_NAME}"
3131
git commit -m "bump bosh-blobstore-${BLOBSTORE_TYPE}/${version}"
3232
fi
3333
popd

ci/tasks/bump-bosh-blobstore-cli.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ outputs:
1313

1414
run:
1515
path: bosh-stemcells-ci/ci/tasks/bump-bosh-blobstore-cli.sh
16+
17+
params:
18+
GIT_USER_EMAIL:
19+
GIT_USER_NAME:

ci/tasks/commit-build-time.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ formatted_build_time="$(date --date "${build_time%.*}" +%Y%m%dT%H%M%SZ)"
1616
pushd "${REPO_PARENT}/bosh-linux-stemcell-builder"
1717
echo "${formatted_build_time}" > build_time.txt
1818
git add -A
19-
git config --global user.email "ci@localhost"
20-
git config --global user.name "CI Bot"
19+
git config --global user.email "${GIT_USER_EMAIL}"
20+
git config --global user.name "${GIT_USER_NAME}"
2121
git commit -m "Commit Build Time"
2222
popd

ci/tasks/commit-build-time.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ outputs:
1111

1212
run:
1313
path: bosh-stemcells-ci/ci/tasks/commit-build-time.sh
14+
15+
params:
16+
GIT_USER_EMAIL:
17+
GIT_USER_NAME:

0 commit comments

Comments
 (0)