I have recently set up pipelines and works fine, however I have 6 environments both pipelines have their own Dev, test and Prod environment. Below are my 2 examples I have set up:
Dev 1 > Test 1 > Prod 1
Dev 2 > Test 2 > Prod 2
When I go to push a solution through pipelines it defaults to the latest set up pipeline, this will also let me deploy to this pipeline even through I am deploying from the wrong environment set up in Pipelines for example.
I can deploy as follows:
Dev 2 > Test 1 > Prod 1
However 'Dev 2' environment should only let me deploy to 'Test 2' and should not let me deploy to 'Test 1'
When setting up a pipeline you have to set your development environment and then specify the pipeline you are going to and from so you shouldn't be able to push the pipeline through from the wrong environment is my understanding, but it has let me do this on 2 separate occasions now. I have double checked my Pipeline set up and both pipelines are using the correct environment and are both set up correctly.
Has anyone got any ideas on how to prevent pipelines being pushed through the wrong environment?
This seems to be bug for us and we raised a ticket with support team.
It makes sense to filter the pipelines that are relevant to the specific environments to avoid the issues.
I will update once we hear more from the support team as they are having conversation with product team.
Feel free to raise a ticket from your end.
====================================================
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
https://www.linkedin.com/in/devendravelegandla/