This repository has been archived by the owner on Feb 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #374 from Ben16/upgrade-buildpacks-for-multiple-st…
…acks Upgrade buildpacks for multiple stacks
- Loading branch information
Showing
8 changed files
with
176 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,26 @@ | ||
atc_creds: &atc_creds | ||
ATC_EXTERNAL_URL: {{atc_external_url}} | ||
ATC_BASIC_AUTH_USERNAME: {{fly_basic_auth_username}} | ||
ATC_BASIC_AUTH_PASSWORD: {{fly_basic_auth_password}} | ||
ATC_TEAM_NAME: {{atc_team_name}} | ||
|
||
vsphere_atc_creds: &vsphere_atc_creds | ||
ATC_EXTERNAL_URL: {{atc_external_url}} | ||
ATC_BASIC_AUTH_USERNAME: {{fly_basic_auth_username}} | ||
ATC_BASIC_AUTH_PASSWORD: {{fly_basic_auth_password}} | ||
ATC_TEAM_NAME: vsphere | ||
|
||
notify_slack: ¬ify_slack | ||
put: slack | ||
params: | ||
text: "$BUILD_PIPELINE_NAME/$BUILD_JOB_NAME failed: $ATC_EXTERNAL_URL/builds/$BUILD_ID" | ||
|
||
norm-ci-locks-params: &norm-ci-locks-params | ||
uri: [email protected]:pivotal-cf/norm-ci-locks.git | ||
branch: master | ||
private_key: {{locks_git_ssh_key}} | ||
retry_delay: 1m | ||
|
||
groups: | ||
- name: all | ||
jobs: | ||
|
@@ -1304,26 +1327,3 @@ jobs: | |
on_failure: | ||
<<: *notify_slack | ||
####### END VSPHERE OFFLINE | ||
|
||
atc_creds: &atc_creds | ||
ATC_EXTERNAL_URL: {{atc_external_url}} | ||
ATC_BASIC_AUTH_USERNAME: {{fly_basic_auth_username}} | ||
ATC_BASIC_AUTH_PASSWORD: {{fly_basic_auth_password}} | ||
ATC_TEAM_NAME: {{atc_team_name}} | ||
|
||
vsphere_atc_creds: &vsphere_atc_creds | ||
ATC_EXTERNAL_URL: {{atc_external_url}} | ||
ATC_BASIC_AUTH_USERNAME: {{fly_basic_auth_username}} | ||
ATC_BASIC_AUTH_PASSWORD: {{fly_basic_auth_password}} | ||
ATC_TEAM_NAME: vsphere | ||
|
||
notify_slack: ¬ify_slack | ||
put: slack | ||
params: | ||
text: "$BUILD_PIPELINE_NAME/$BUILD_JOB_NAME failed: $ATC_EXTERNAL_URL/builds/$BUILD_ID" | ||
|
||
norm-ci-locks-params: &norm-ci-locks-params | ||
uri: [email protected]:pivotal-cf/norm-ci-locks.git | ||
branch: master | ||
private_key: {{locks_git_ssh_key}} | ||
retry_delay: 1m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
# Copyright 2017-Present Pivotal Software, Inc. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
cf api $CF_API_URI --skip-ssl-validation | ||
cf auth $CF_USERNAME $CF_PASSWORD | ||
|
||
for STACK_NAME in $STACKS; | ||
do | ||
echo Upgrading ${TARGET_BUILDPACK_NAME} ${STACK_NAME}... | ||
cf update-buildpack $TARGET_BUILDPACK_NAME -s $STACK_NAME -p buildpack/*.zip --enable | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright 2017-Present Pivotal Software, Inc. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
--- | ||
platform: linux | ||
|
||
image_resource: | ||
type: docker-image | ||
source: | ||
repository: pcfnorm/rootfs | ||
tag: 1.0.28 | ||
|
||
|
||
inputs: | ||
- name: buildpack | ||
- name: pcf-pipelines | ||
|
||
params: | ||
CF_API_URI: | ||
CF_USERNAME: | ||
CF_PASSWORD: | ||
TARGET_BUILDPACK_NAME: | ||
STACKS: | ||
|
||
run: | ||
path: pcf-pipelines/tasks/upgrade-buildpack/task.sh |
Oops, something went wrong.