No Azure DevOps Pipelines - Builds - Tasks












2















Following this Microsoft tutorial (Run unit tests with your builds), I was expecting to be able to run my unit-tests automatically when a build is triggered, such as a Pull request.



However, when I look in the Pipeline / Builds tab and try to edit my pipeline, there is nothing that allows me to add a new task (see screenshot below).
enter image description here



However, there doesn't appear to be any way of adding a task. I can't even switch to the YMAL without navigating to the source via the Repo. I was hoping to use the GUI though as my YMAL is non-existent.



I have created a test solution with the following structure, which is held in the repo:



Core Solution
|_ Class Library Project (.NET Core)
|_ MSTest Test Project (.NET Core)


I was hoping to have a build step followed by a Unit Test step using the tests in my MSTest Test Project (.NET Core) project once they were built.



There appears to be a Tasks option in the Releases tab by the way, but I was expecting to be able to add tasks for builds as well, especially Unit Tests.



Being new at this, perhaps I have missed or misunderstood something. I would be grateful for any help and to be pointed in the right direction.










share|improve this question





























    2















    Following this Microsoft tutorial (Run unit tests with your builds), I was expecting to be able to run my unit-tests automatically when a build is triggered, such as a Pull request.



    However, when I look in the Pipeline / Builds tab and try to edit my pipeline, there is nothing that allows me to add a new task (see screenshot below).
    enter image description here



    However, there doesn't appear to be any way of adding a task. I can't even switch to the YMAL without navigating to the source via the Repo. I was hoping to use the GUI though as my YMAL is non-existent.



    I have created a test solution with the following structure, which is held in the repo:



    Core Solution
    |_ Class Library Project (.NET Core)
    |_ MSTest Test Project (.NET Core)


    I was hoping to have a build step followed by a Unit Test step using the tests in my MSTest Test Project (.NET Core) project once they were built.



    There appears to be a Tasks option in the Releases tab by the way, but I was expecting to be able to add tasks for builds as well, especially Unit Tests.



    Being new at this, perhaps I have missed or misunderstood something. I would be grateful for any help and to be pointed in the right direction.










    share|improve this question



























      2












      2








      2








      Following this Microsoft tutorial (Run unit tests with your builds), I was expecting to be able to run my unit-tests automatically when a build is triggered, such as a Pull request.



      However, when I look in the Pipeline / Builds tab and try to edit my pipeline, there is nothing that allows me to add a new task (see screenshot below).
      enter image description here



      However, there doesn't appear to be any way of adding a task. I can't even switch to the YMAL without navigating to the source via the Repo. I was hoping to use the GUI though as my YMAL is non-existent.



      I have created a test solution with the following structure, which is held in the repo:



      Core Solution
      |_ Class Library Project (.NET Core)
      |_ MSTest Test Project (.NET Core)


      I was hoping to have a build step followed by a Unit Test step using the tests in my MSTest Test Project (.NET Core) project once they were built.



      There appears to be a Tasks option in the Releases tab by the way, but I was expecting to be able to add tasks for builds as well, especially Unit Tests.



      Being new at this, perhaps I have missed or misunderstood something. I would be grateful for any help and to be pointed in the right direction.










      share|improve this question
















      Following this Microsoft tutorial (Run unit tests with your builds), I was expecting to be able to run my unit-tests automatically when a build is triggered, such as a Pull request.



      However, when I look in the Pipeline / Builds tab and try to edit my pipeline, there is nothing that allows me to add a new task (see screenshot below).
      enter image description here



      However, there doesn't appear to be any way of adding a task. I can't even switch to the YMAL without navigating to the source via the Repo. I was hoping to use the GUI though as my YMAL is non-existent.



      I have created a test solution with the following structure, which is held in the repo:



      Core Solution
      |_ Class Library Project (.NET Core)
      |_ MSTest Test Project (.NET Core)


      I was hoping to have a build step followed by a Unit Test step using the tests in my MSTest Test Project (.NET Core) project once they were built.



      There appears to be a Tasks option in the Releases tab by the way, but I was expecting to be able to add tasks for builds as well, especially Unit Tests.



      Being new at this, perhaps I have missed or misunderstood something. I would be grateful for any help and to be pointed in the right direction.







      azure-devops azure-pipelines






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 12 '18 at 17:08









      Daniel Mann

      37.9k65885




      37.9k65885










      asked Nov 12 '18 at 15:31









      KaineKaine

      665




      665
























          2 Answers
          2






          active

          oldest

          votes


















          2














          You have created a new YAML style of build configuration. Currently Azure DevOps does not support of having YAML & GUI editor at the same time (this is upcoming feature in Q1/2019).



          To get a GUI editor, create new build pipeline.



          In this selection click "Use the visual designer".



          enter image description here



          Then at template phase, don't select YAML. Any other template will do. You can easily delete all the build steps after selecting template, so don't be afraid to choose any.
          enter image description here






          share|improve this answer
























          • I'm using dark theme in Azure DevOps, but don't mind about it :).

            – Panu Oksala
            Nov 12 '18 at 16:36






          • 1





            Hi @Mino, Yes I have just discovered that myself. Thanks ever so much for your response. You're very kind.

            – Kaine
            Nov 12 '18 at 17:53



















          2














          It seems that there is an obscure link that takes you through to the correct process, found it quite by accident, see screenshot below:



          Choose the **Use the visual designer** option



          It turns out that there is a little link titled Use the visual designer that I'd missed. Seems a little odd that most of the tutorials discuss this process and yet it's partially obscured. I guess that this shows that the platform is a work in process and still being added to and improved.



          Another few caveats for those descending this little rabbit hole, after selecting the Use the visual designer link, be sure to select the Empty pipeline template, or whatever is appropriate to your project/solution type, and not the YAML option at the top of the list, otherwise you'll be back where you started.



          Select the **Empty pipeline** template



          Finally, it seems that automated Unit Tests don't work on Agents other than Hosted VS2017 Agents (that said, I haven't tried the Hosted option). This is set in the very next screen by selecting the Pipeline and selecting the Agent pool from the drop-down.



          One last thing... The pipeline won't run automatically unless you check the Enable continuous integration checkbox on the Triggers tab.



          Once this is all done, I simply chose the tasks needed for the build by clicking the plus symbol on the Agent job 1 item.



          Good luck



          Kaine






          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%2f53265332%2fno-azure-devops-pipelines-builds-tasks%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            You have created a new YAML style of build configuration. Currently Azure DevOps does not support of having YAML & GUI editor at the same time (this is upcoming feature in Q1/2019).



            To get a GUI editor, create new build pipeline.



            In this selection click "Use the visual designer".



            enter image description here



            Then at template phase, don't select YAML. Any other template will do. You can easily delete all the build steps after selecting template, so don't be afraid to choose any.
            enter image description here






            share|improve this answer
























            • I'm using dark theme in Azure DevOps, but don't mind about it :).

              – Panu Oksala
              Nov 12 '18 at 16:36






            • 1





              Hi @Mino, Yes I have just discovered that myself. Thanks ever so much for your response. You're very kind.

              – Kaine
              Nov 12 '18 at 17:53
















            2














            You have created a new YAML style of build configuration. Currently Azure DevOps does not support of having YAML & GUI editor at the same time (this is upcoming feature in Q1/2019).



            To get a GUI editor, create new build pipeline.



            In this selection click "Use the visual designer".



            enter image description here



            Then at template phase, don't select YAML. Any other template will do. You can easily delete all the build steps after selecting template, so don't be afraid to choose any.
            enter image description here






            share|improve this answer
























            • I'm using dark theme in Azure DevOps, but don't mind about it :).

              – Panu Oksala
              Nov 12 '18 at 16:36






            • 1





              Hi @Mino, Yes I have just discovered that myself. Thanks ever so much for your response. You're very kind.

              – Kaine
              Nov 12 '18 at 17:53














            2












            2








            2







            You have created a new YAML style of build configuration. Currently Azure DevOps does not support of having YAML & GUI editor at the same time (this is upcoming feature in Q1/2019).



            To get a GUI editor, create new build pipeline.



            In this selection click "Use the visual designer".



            enter image description here



            Then at template phase, don't select YAML. Any other template will do. You can easily delete all the build steps after selecting template, so don't be afraid to choose any.
            enter image description here






            share|improve this answer













            You have created a new YAML style of build configuration. Currently Azure DevOps does not support of having YAML & GUI editor at the same time (this is upcoming feature in Q1/2019).



            To get a GUI editor, create new build pipeline.



            In this selection click "Use the visual designer".



            enter image description here



            Then at template phase, don't select YAML. Any other template will do. You can easily delete all the build steps after selecting template, so don't be afraid to choose any.
            enter image description here







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 12 '18 at 16:35









            Panu OksalaPanu Oksala

            2,0251323




            2,0251323













            • I'm using dark theme in Azure DevOps, but don't mind about it :).

              – Panu Oksala
              Nov 12 '18 at 16:36






            • 1





              Hi @Mino, Yes I have just discovered that myself. Thanks ever so much for your response. You're very kind.

              – Kaine
              Nov 12 '18 at 17:53



















            • I'm using dark theme in Azure DevOps, but don't mind about it :).

              – Panu Oksala
              Nov 12 '18 at 16:36






            • 1





              Hi @Mino, Yes I have just discovered that myself. Thanks ever so much for your response. You're very kind.

              – Kaine
              Nov 12 '18 at 17:53

















            I'm using dark theme in Azure DevOps, but don't mind about it :).

            – Panu Oksala
            Nov 12 '18 at 16:36





            I'm using dark theme in Azure DevOps, but don't mind about it :).

            – Panu Oksala
            Nov 12 '18 at 16:36




            1




            1





            Hi @Mino, Yes I have just discovered that myself. Thanks ever so much for your response. You're very kind.

            – Kaine
            Nov 12 '18 at 17:53





            Hi @Mino, Yes I have just discovered that myself. Thanks ever so much for your response. You're very kind.

            – Kaine
            Nov 12 '18 at 17:53













            2














            It seems that there is an obscure link that takes you through to the correct process, found it quite by accident, see screenshot below:



            Choose the **Use the visual designer** option



            It turns out that there is a little link titled Use the visual designer that I'd missed. Seems a little odd that most of the tutorials discuss this process and yet it's partially obscured. I guess that this shows that the platform is a work in process and still being added to and improved.



            Another few caveats for those descending this little rabbit hole, after selecting the Use the visual designer link, be sure to select the Empty pipeline template, or whatever is appropriate to your project/solution type, and not the YAML option at the top of the list, otherwise you'll be back where you started.



            Select the **Empty pipeline** template



            Finally, it seems that automated Unit Tests don't work on Agents other than Hosted VS2017 Agents (that said, I haven't tried the Hosted option). This is set in the very next screen by selecting the Pipeline and selecting the Agent pool from the drop-down.



            One last thing... The pipeline won't run automatically unless you check the Enable continuous integration checkbox on the Triggers tab.



            Once this is all done, I simply chose the tasks needed for the build by clicking the plus symbol on the Agent job 1 item.



            Good luck



            Kaine






            share|improve this answer




























              2














              It seems that there is an obscure link that takes you through to the correct process, found it quite by accident, see screenshot below:



              Choose the **Use the visual designer** option



              It turns out that there is a little link titled Use the visual designer that I'd missed. Seems a little odd that most of the tutorials discuss this process and yet it's partially obscured. I guess that this shows that the platform is a work in process and still being added to and improved.



              Another few caveats for those descending this little rabbit hole, after selecting the Use the visual designer link, be sure to select the Empty pipeline template, or whatever is appropriate to your project/solution type, and not the YAML option at the top of the list, otherwise you'll be back where you started.



              Select the **Empty pipeline** template



              Finally, it seems that automated Unit Tests don't work on Agents other than Hosted VS2017 Agents (that said, I haven't tried the Hosted option). This is set in the very next screen by selecting the Pipeline and selecting the Agent pool from the drop-down.



              One last thing... The pipeline won't run automatically unless you check the Enable continuous integration checkbox on the Triggers tab.



              Once this is all done, I simply chose the tasks needed for the build by clicking the plus symbol on the Agent job 1 item.



              Good luck



              Kaine






              share|improve this answer


























                2












                2








                2







                It seems that there is an obscure link that takes you through to the correct process, found it quite by accident, see screenshot below:



                Choose the **Use the visual designer** option



                It turns out that there is a little link titled Use the visual designer that I'd missed. Seems a little odd that most of the tutorials discuss this process and yet it's partially obscured. I guess that this shows that the platform is a work in process and still being added to and improved.



                Another few caveats for those descending this little rabbit hole, after selecting the Use the visual designer link, be sure to select the Empty pipeline template, or whatever is appropriate to your project/solution type, and not the YAML option at the top of the list, otherwise you'll be back where you started.



                Select the **Empty pipeline** template



                Finally, it seems that automated Unit Tests don't work on Agents other than Hosted VS2017 Agents (that said, I haven't tried the Hosted option). This is set in the very next screen by selecting the Pipeline and selecting the Agent pool from the drop-down.



                One last thing... The pipeline won't run automatically unless you check the Enable continuous integration checkbox on the Triggers tab.



                Once this is all done, I simply chose the tasks needed for the build by clicking the plus symbol on the Agent job 1 item.



                Good luck



                Kaine






                share|improve this answer













                It seems that there is an obscure link that takes you through to the correct process, found it quite by accident, see screenshot below:



                Choose the **Use the visual designer** option



                It turns out that there is a little link titled Use the visual designer that I'd missed. Seems a little odd that most of the tutorials discuss this process and yet it's partially obscured. I guess that this shows that the platform is a work in process and still being added to and improved.



                Another few caveats for those descending this little rabbit hole, after selecting the Use the visual designer link, be sure to select the Empty pipeline template, or whatever is appropriate to your project/solution type, and not the YAML option at the top of the list, otherwise you'll be back where you started.



                Select the **Empty pipeline** template



                Finally, it seems that automated Unit Tests don't work on Agents other than Hosted VS2017 Agents (that said, I haven't tried the Hosted option). This is set in the very next screen by selecting the Pipeline and selecting the Agent pool from the drop-down.



                One last thing... The pipeline won't run automatically unless you check the Enable continuous integration checkbox on the Triggers tab.



                Once this is all done, I simply chose the tasks needed for the build by clicking the plus symbol on the Agent job 1 item.



                Good luck



                Kaine







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 12 '18 at 18:11









                KaineKaine

                665




                665






























                    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.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53265332%2fno-azure-devops-pipelines-builds-tasks%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

                    Full-time equivalent

                    さくらももこ

                    13 indicted, 8 arrested in Calif. drug cartel investigation