GitTools / actions

GitHub Action that installs and uses the GitVersion and GitReleaseManager tools
MIT License
222 stars 63 forks source link

[ISSUE]: Error in DevOps Pipeline: The current operating system is not capable of running this task #1300

Closed philried24 closed 3 weeks ago

philried24 commented 3 weeks ago

Prerequisites

GitVersion package

AzureDevops task

What are you seeing?

I installed the Azure DevOps extension and wanted to test the tasks in my pipeline. The integration is set up as follows:

      - task: gitversion/execute@3.0.0
        displayName: Determine `Version`

However, after starting the pipeline, I encountered the following error: The current operating system is not capable of running this task. That typically means the task was written for Windows only. For example, written for Windows Desktop PowerShell.

We primarily use Linux as our operating system, but I also tried running it on Windows, and I’m still getting the same error.

What is expected?

I expected that the GitVersion tool would be installed and ready to use, but at this point, I’m unsure if the extension is working as intended.

Steps to Reproduce

jobs:
  - job: Overall
    workspace:
      clean: all
    pool:
      name: linux
      demands:
        - Agent.OS -equals Linux
        - docker
        - general
    variables:
      - group: devops
    steps:
      - checkout: self
        fetchDepth: 0
        fetchTags: true
        persistCredentials: true
      - task: gitversion/execute@3.0.0
        displayName: Determine Version

As mentioned earlier, the error occurs on both Linux and Windows.

Output log or link to your CI build (if appropriate).

No response

arturcic commented 3 weeks ago

duplicate #1231