Azure-devops-docs: How to set ref to specific commit SHA?

Created on 11 Feb 2020  ·  11Comments  ·  Source: MicrosoftDocs/azure-devops-docs

According to multi-checkout design document, it should be possible to reference a specific commit ID to checkout. What is the proper syntax to achieve this while using the repository resource syntax?

Right now, if I simply put the full SHA (or even short SHA displayed in Github) as ref, I receive the following error message:

The pipeline is not valid. Could not get the latest source version for repository Me/MyRepo hosted on https://github.com/ using ref refs/heads/79c26b351f88e5b5842570d6c7d0447524b35a43. GitHub reported the error, "No commit found for SHA: refs/heads/79c26b351f88e5b5842570d6c7d0447524b35a43"

My repository resource looks like:

resources:
  repositories:
  - repository: MyGitHubRepo # The name used to reference this repository in the checkout step
    type: github
    endpoint: Me
    name: Me/MyRepo
    ref: 79c26b351f88e5b5842570d6c7d0447524b35a43

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri1 devops-cictech devopprod doc-bug stale-issue

Most helpful comment

@cxwtool I really hope you are a bot and not a human... Do you think this issue looks like resolved when looking at the last messages?
No update in 180 days might be a good think to avoid all of the +1 replies and keep the thread clean!

All 11 comments

@ggirard07 -- thanks for your question. You may find answers here:

I also would like to get an answer to the same question.

@ggirard07 @melezhik I'll find out and report back here shortly.

@steved0x Do you have new information here?

Same thing from here. I do experiment the same issue here

@steved0x Do you have new information for us? :-)

This issue hasn't been updated in more than 180 days, so we've closed it. If you feel the issue is still relevant and needs fixed, please reopen it and we'll take another look. We appreciate your feedback and apologize for any inconvenience.

@cxwtool I really hope you are a bot and not a human... Do you think this issue looks like resolved when looking at the last messages?
No update in 180 days might be a good think to avoid all of the +1 replies and keep the thread clean!

This just means they are not able to handle the volume of Tickets.
The reason is either that they have to many bugs or to few support people...

@steved0x Can you take a look at this?

Was this page helpful?
0 / 5 - 0 ratings