By Denis Zavershinskiy


2018-03-12 08:30:43 8 Comments

We use spinnaker to deploy dockerized microservices over all environments. Process description:

  1. Integration env - pipeline is triggered by new tag appears in registry
  2. QA env - manually triggered int-to-qa pipeline:
    1. Step "Find Image from Cluster" to find what tag is deployed on the Integration env
    2. Deploy found tag to QA env

This process works fine. But there is an enhancement I want to implement.

We have another pipeline to move all deployed services from Integration to QA env. It triggers int-to-qa pipeline for all service even for those where INT and QA versions are the same, and deploy is not required. So "Redeploy All" pipeline updates all 20 services, when only 6 of them require for update.

I want to change int-to-qa pipeline:

  1. Find Image from Integration
  2. Find Image from QA
  3. If images 1 and 2 are the same - complete pipeline successfully
  4. Otherwise, deploy Integration image to QA

And I don't have any idea how to implement step 3.

1 comments

@E B 2018-03-13 15:56:04

You can use a check preconditions stage with SPeL expressions to compare the images. This check preconditions stage would depend on both your "Find Image from Integration" Stage and your "Find Image from QA" Stage. In the check preconditions stage, add a check with type "expression", and use the expression docs to compare the images from the previous stages. In case you didn't know, you can view the stage json by clicking the 'source' link in the bottom right of the pipeline execution view, or by visiting your-spinnaker-api-url/pipelines/your-execution-uuid.

Related Questions

Sponsored Content

2 Answered Questions

3 Answered Questions

1 Answered Questions

1 Answered Questions

1 Answered Questions

1 Answered Questions

1 Answered Questions

1 Answered Questions

[SOLVED] Not able to open spinnaker deck UI using machine ip address on EC2

  • 2015-12-15 14:51:16
  • Arindam Ghosh
  • 1430 View
  • 3 Score
  • 1 Answer
  • Tags:   spinnaker

Sponsored Content