How to run pipeline after release pipeline in VSTS?












1














I have a task which I would like to run after the completion of any of my release pipelines. The release pipelines need to complete their run and finish completely. Then this final pipeline should run and be passed the artefact from the build and release pipeline.



Is there a way to run a task or pipeline after a release pipeline has completed?



I need to run this task after the release pipeline has completed because the task I've written needs to request information from the DevOps REST API which will not return anything until the release pipeline has finished.










share|improve this question


















  • 1




    Have you tried setting up another job, does the rest api return values after job is completed? You could also implement azure function and add one step to invoke that function when release is completed. Then wait(?) in azure function and do your magic.
    – Panu Oksala
    Nov 12 at 7:01












  • I tried setting up another pipeline to be run after the release pipeline, but that is not possible, AFAIK. The API only returns information generated during the pipeline run after the pipeline has fully completed. I will look into using azure functions, though it would be nicer to keep all the work in one place.
    – Matt W
    Nov 12 at 8:13






  • 1




    Oh, ok. You are right that one place would be nice, but I have found that often it's not possible if you are doing anything bit more complex. In my blog is a short tutorial how to create custom integration with Azure DevOps (oksala.net). Check it out and hopefully it helps ya.
    – Panu Oksala
    Nov 12 at 10:41






  • 1




    at the end of the first pipeline, you can add a task that kicks off a new release pipeline, until the new pipeline will start the first will be finished.
    – Shayki Abramczyk
    Nov 12 at 10:59






  • 1




    You can also do it with Service Hook, do you know what is it?
    – Shayki Abramczyk
    Nov 12 at 11:22
















1














I have a task which I would like to run after the completion of any of my release pipelines. The release pipelines need to complete their run and finish completely. Then this final pipeline should run and be passed the artefact from the build and release pipeline.



Is there a way to run a task or pipeline after a release pipeline has completed?



I need to run this task after the release pipeline has completed because the task I've written needs to request information from the DevOps REST API which will not return anything until the release pipeline has finished.










share|improve this question


















  • 1




    Have you tried setting up another job, does the rest api return values after job is completed? You could also implement azure function and add one step to invoke that function when release is completed. Then wait(?) in azure function and do your magic.
    – Panu Oksala
    Nov 12 at 7:01












  • I tried setting up another pipeline to be run after the release pipeline, but that is not possible, AFAIK. The API only returns information generated during the pipeline run after the pipeline has fully completed. I will look into using azure functions, though it would be nicer to keep all the work in one place.
    – Matt W
    Nov 12 at 8:13






  • 1




    Oh, ok. You are right that one place would be nice, but I have found that often it's not possible if you are doing anything bit more complex. In my blog is a short tutorial how to create custom integration with Azure DevOps (oksala.net). Check it out and hopefully it helps ya.
    – Panu Oksala
    Nov 12 at 10:41






  • 1




    at the end of the first pipeline, you can add a task that kicks off a new release pipeline, until the new pipeline will start the first will be finished.
    – Shayki Abramczyk
    Nov 12 at 10:59






  • 1




    You can also do it with Service Hook, do you know what is it?
    – Shayki Abramczyk
    Nov 12 at 11:22














1












1








1







I have a task which I would like to run after the completion of any of my release pipelines. The release pipelines need to complete their run and finish completely. Then this final pipeline should run and be passed the artefact from the build and release pipeline.



Is there a way to run a task or pipeline after a release pipeline has completed?



I need to run this task after the release pipeline has completed because the task I've written needs to request information from the DevOps REST API which will not return anything until the release pipeline has finished.










share|improve this question













I have a task which I would like to run after the completion of any of my release pipelines. The release pipelines need to complete their run and finish completely. Then this final pipeline should run and be passed the artefact from the build and release pipeline.



Is there a way to run a task or pipeline after a release pipeline has completed?



I need to run this task after the release pipeline has completed because the task I've written needs to request information from the DevOps REST API which will not return anything until the release pipeline has finished.







azure-devops azure-pipelines






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 12 at 6:43









Matt W

3,608115299




3,608115299








  • 1




    Have you tried setting up another job, does the rest api return values after job is completed? You could also implement azure function and add one step to invoke that function when release is completed. Then wait(?) in azure function and do your magic.
    – Panu Oksala
    Nov 12 at 7:01












  • I tried setting up another pipeline to be run after the release pipeline, but that is not possible, AFAIK. The API only returns information generated during the pipeline run after the pipeline has fully completed. I will look into using azure functions, though it would be nicer to keep all the work in one place.
    – Matt W
    Nov 12 at 8:13






  • 1




    Oh, ok. You are right that one place would be nice, but I have found that often it's not possible if you are doing anything bit more complex. In my blog is a short tutorial how to create custom integration with Azure DevOps (oksala.net). Check it out and hopefully it helps ya.
    – Panu Oksala
    Nov 12 at 10:41






  • 1




    at the end of the first pipeline, you can add a task that kicks off a new release pipeline, until the new pipeline will start the first will be finished.
    – Shayki Abramczyk
    Nov 12 at 10:59






  • 1




    You can also do it with Service Hook, do you know what is it?
    – Shayki Abramczyk
    Nov 12 at 11:22














  • 1




    Have you tried setting up another job, does the rest api return values after job is completed? You could also implement azure function and add one step to invoke that function when release is completed. Then wait(?) in azure function and do your magic.
    – Panu Oksala
    Nov 12 at 7:01












  • I tried setting up another pipeline to be run after the release pipeline, but that is not possible, AFAIK. The API only returns information generated during the pipeline run after the pipeline has fully completed. I will look into using azure functions, though it would be nicer to keep all the work in one place.
    – Matt W
    Nov 12 at 8:13






  • 1




    Oh, ok. You are right that one place would be nice, but I have found that often it's not possible if you are doing anything bit more complex. In my blog is a short tutorial how to create custom integration with Azure DevOps (oksala.net). Check it out and hopefully it helps ya.
    – Panu Oksala
    Nov 12 at 10:41






  • 1




    at the end of the first pipeline, you can add a task that kicks off a new release pipeline, until the new pipeline will start the first will be finished.
    – Shayki Abramczyk
    Nov 12 at 10:59






  • 1




    You can also do it with Service Hook, do you know what is it?
    – Shayki Abramczyk
    Nov 12 at 11:22








1




1




Have you tried setting up another job, does the rest api return values after job is completed? You could also implement azure function and add one step to invoke that function when release is completed. Then wait(?) in azure function and do your magic.
– Panu Oksala
Nov 12 at 7:01






Have you tried setting up another job, does the rest api return values after job is completed? You could also implement azure function and add one step to invoke that function when release is completed. Then wait(?) in azure function and do your magic.
– Panu Oksala
Nov 12 at 7:01














I tried setting up another pipeline to be run after the release pipeline, but that is not possible, AFAIK. The API only returns information generated during the pipeline run after the pipeline has fully completed. I will look into using azure functions, though it would be nicer to keep all the work in one place.
– Matt W
Nov 12 at 8:13




I tried setting up another pipeline to be run after the release pipeline, but that is not possible, AFAIK. The API only returns information generated during the pipeline run after the pipeline has fully completed. I will look into using azure functions, though it would be nicer to keep all the work in one place.
– Matt W
Nov 12 at 8:13




1




1




Oh, ok. You are right that one place would be nice, but I have found that often it's not possible if you are doing anything bit more complex. In my blog is a short tutorial how to create custom integration with Azure DevOps (oksala.net). Check it out and hopefully it helps ya.
– Panu Oksala
Nov 12 at 10:41




Oh, ok. You are right that one place would be nice, but I have found that often it's not possible if you are doing anything bit more complex. In my blog is a short tutorial how to create custom integration with Azure DevOps (oksala.net). Check it out and hopefully it helps ya.
– Panu Oksala
Nov 12 at 10:41




1




1




at the end of the first pipeline, you can add a task that kicks off a new release pipeline, until the new pipeline will start the first will be finished.
– Shayki Abramczyk
Nov 12 at 10:59




at the end of the first pipeline, you can add a task that kicks off a new release pipeline, until the new pipeline will start the first will be finished.
– Shayki Abramczyk
Nov 12 at 10:59




1




1




You can also do it with Service Hook, do you know what is it?
– Shayki Abramczyk
Nov 12 at 11:22




You can also do it with Service Hook, do you know what is it?
– Shayki Abramczyk
Nov 12 at 11:22












1 Answer
1






active

oldest

votes


















1














There is an extension in the Marketplace called "Trigger Build Task" (https://marketplace.visualstudio.com/items?itemName=benjhuser.tfs-extensions-build-tasks) that enables the chaining builds.



It allows your Release pipeline to complete and a separate Build pipeline is started on a different thread/process, so you should be able to query the information you need from that triggered Build.



enter image description here






share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53257066%2fhow-to-run-pipeline-after-release-pipeline-in-vsts%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    There is an extension in the Marketplace called "Trigger Build Task" (https://marketplace.visualstudio.com/items?itemName=benjhuser.tfs-extensions-build-tasks) that enables the chaining builds.



    It allows your Release pipeline to complete and a separate Build pipeline is started on a different thread/process, so you should be able to query the information you need from that triggered Build.



    enter image description here






    share|improve this answer


























      1














      There is an extension in the Marketplace called "Trigger Build Task" (https://marketplace.visualstudio.com/items?itemName=benjhuser.tfs-extensions-build-tasks) that enables the chaining builds.



      It allows your Release pipeline to complete and a separate Build pipeline is started on a different thread/process, so you should be able to query the information you need from that triggered Build.



      enter image description here






      share|improve this answer
























        1












        1








        1






        There is an extension in the Marketplace called "Trigger Build Task" (https://marketplace.visualstudio.com/items?itemName=benjhuser.tfs-extensions-build-tasks) that enables the chaining builds.



        It allows your Release pipeline to complete and a separate Build pipeline is started on a different thread/process, so you should be able to query the information you need from that triggered Build.



        enter image description here






        share|improve this answer












        There is an extension in the Marketplace called "Trigger Build Task" (https://marketplace.visualstudio.com/items?itemName=benjhuser.tfs-extensions-build-tasks) that enables the chaining builds.



        It allows your Release pipeline to complete and a separate Build pipeline is started on a different thread/process, so you should be able to query the information you need from that triggered Build.



        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 12 at 14:27









        SitWalkStand

        1,0211011




        1,0211011






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53257066%2fhow-to-run-pipeline-after-release-pipeline-in-vsts%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Florida Star v. B. J. F.

            Danny Elfman

            Lugert, Oklahoma