# A task is missing. Specifying minor task version in YML pipeline is not working

**URL:** <https://community.sonarsource.com/t/a-task-is-missing-specifying-minor-task-version-in-yml-pipeline-is-not-working/95474>\
**Category:** SonarQube Server / Community Build\
**Tags:** azure-devops\
**Created:** [July 11, 2023, 10:10am UTC](https://community.sonarsource.com/t/a-task-is-missing-specifying-minor-task-version-in-yml-pipeline-is-not-working/95474 "2023-07-11T10:10:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![flowbrain](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/flowbrain/32/38604_2.png) [@flowbrain](https://community.sonarsource.com/u/flowbrain)\
**Post date:** [July 11, 2023, 10:10am UTC](https://community.sonarsource.com/t/a-task-is-missing-specifying-minor-task-version-in-yml-pipeline-is-not-working/95474/1 "2023-07-11T10:10:09Z")

</div>

Installed Sonarqube extension on our organization on Devops Azure in cloud at [https://dev.azure.com/](https://dev.azure.com/)  
added sonarqube tasks to YML pipeline, but they will not run because of using minor version in task reference → **SonarQubePrepare@5.13.0**

However I get this error when trying to run pipeline:

> A task is missing. The pipeline references a task called ‘SonarQubePrepare’. This usually indicates the task isn’t installed, and you may be able to install it from the Marketplace: [https://marketplace.visualstudio.com](https://marketplace.visualstudio.com). (Task version 5.13.0, job ‘Job’, step ‘’.)  
> ![image.png](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/2/9/29260f69ed87dd78bb9712f2d82293ea3ef37d66.png)

**NOTE1** : using major version of task such as **SonarQubePrepare@5** works, BUT it breaks my pipeline ( the latest task version 5.15.0 introduced a bug )

**NOTE2** : the minor version works without problem on our on-prem server _Version Azure DevOps Server 2020 Update 1.1_

---

<div class="post-metadata">

**Author:** ![benjamin.raymond](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/benjamin.raymond/32/41399_2.png) [@benjamin.raymond](https://community.sonarsource.com/u/benjamin.raymond)\
**Post date:** [July 14, 2023, 2:25pm UTC](https://community.sonarsource.com/t/a-task-is-missing-specifying-minor-task-version-in-yml-pipeline-is-not-working/95474/4 "2023-07-14T14:25:02Z")

</div>

Hi @flowbrain , thanks for reaching out, I was able to dig up your [previous thread](https://community.sonarsource.com/t/no-analyses-found-in-this-build-even-though-analysis-was-successfully-generated/95180) about this issue. Rather than finding a way to freeze the minor version used for the task, I suggest focusing on fixing the bug you have on the latest version of the plugin.

I hinted [a resolution](https://community.sonarsource.com/t/no-analyses-found-in-this-build-even-though-analysis-was-successfully-generated/95180/4) in the other thread. I recall we had some people having issues because major task versions were mixed in their pipeline, so I have good faith that this will solve your issue.

---

<div class="post-metadata">

**Author:** ![flowbrain](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/flowbrain/32/38604_2.png) [@flowbrain](https://community.sonarsource.com/u/flowbrain)\
**Post date:** [July 17, 2023, 7:01am UTC](https://community.sonarsource.com/t/a-task-is-missing-specifying-minor-task-version-in-yml-pipeline-is-not-working/95474/5 "2023-07-17T07:01:13Z")

</div>

@benjamin.raymond - all sonar tasks were used with major version 5. There is inherently a bug on our on-prem server _Version Azure DevOps Server 2020 Update 1.1_  
However issue doesn’t reproduce on Azure Devops Services ( in cloud ), hence you may close this ticket ( as we will soon move to azure in cloud )

---

<div class="post-metadata">

**Author:** ![benjamin.raymond](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/benjamin.raymond/32/41399_2.png) [@benjamin.raymond](https://community.sonarsource.com/u/benjamin.raymond)\
**Post date:** [July 17, 2023, 12:28pm UTC](https://community.sonarsource.com/t/a-task-is-missing-specifying-minor-task-version-in-yml-pipeline-is-not-working/95474/7 "2023-07-17T12:28:37Z")

</div>

Thank you for the update @flowbrain, happy to hear that you were able to have the issue fixed.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [July 24, 2023, 12:28pm UTC](https://community.sonarsource.com/t/a-task-is-missing-specifying-minor-task-version-in-yml-pipeline-is-not-working/95474/8 "2023-07-24T12:28:41Z")

</div>

Closed on July 24, 2023, 12:28pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
