Skip to content

Instantly share code, notes, and snippets.

@boina-n
Created September 6, 2017 21:03
Show Gist options
  • Save boina-n/10ddae620476c6f98d183b45cd909d04 to your computer and use it in GitHub Desktop.
Save boina-n/10ddae620476c6f98d183b45cd909d04 to your computer and use it in GitHub Desktop.
Update PCF pipelines

Update PCF pipelines

Download the pipelines from the PivNet

untargz the pipelines

$ tar -zxvf pcf-pipelines-v0.16.0.tgz

Go under your current source controlled pipeline

$ cd ~/pcf-pipelines/upgrade-ert/

Backup the pipeline to be replaced

$ cp -p pipeline.yml  pipeline.yml.2017080500-NBO
$ cp -p params.yml params.yml.2017080500-NBO

Replace the current pipeline with the freshly downloaded ones.

$ cp -p /tmp/pcf-pipelines/upgrade-ert/* ./

Copy the value of the previous params.yml file to the new one (creds, bosh director IP, schedule etc ...). the schedule can be adjusted in the pipeline.yml file.

Commit the new files

$ git diff
$ git add . 
$ git status
$ git add pipeline.yml params.yml 
$ git commit -m "upgrad upgrade-ert : 0.16"
$ git push

First, log into to your concourse instance with the fly cli

$ fly login 
$ fly login -t pcf

List all the pipelines confugured on your concourse instance

$ fly -t pcf ps 
name                 paused  public
pcf-smoke-test       no      no    
pcf-acceptance-test  yes     no    
upgrade-buildpacks   yes     no    
upgrade-mysql        yes     no    
upgrade-rabbitmq     yes     no    
sleep-app            no      no    
upgrade-redis        yes     no    
poc-prometheus       yes     no    
upgrade-ert          no      no    
service-access       no      no    

Delete the old pipelines

$ fly -t pcf dp -p upgrade-ert

Push the new pipeline to your concourse instance

$ fly -t pcf sp -p upgrade-ert -c pipeline.yml -l params.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment