Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE]: Getting "A supported task execution handler was not found." on setup of GitVersion #1231

Closed
2 tasks done
rodeoboy opened this issue Aug 19, 2024 · 12 comments
Closed
2 tasks done

Comments

@rodeoboy
Copy link

Prerequisites

  • I have written a descriptive issue title
  • I have searched issues to ensure it has not already been reported

GitVersion package

AzureDevops task

What are you seeing?

I am trying to set up gitversion in an ADO Server pipeline. I installed the gittools from the marketplace and I am getting the following error when I run the build.

##[error]A supported task execution handler was not found. The task does not carry an implementation that is compatible with your current operating system 'Windows(X64)'. Contact the task author for more details.

What is expected?

Setup of a version of gitversion that runs on x64

Steps to Reproduce

I have setup git version in my build script as shown below.

jobs:

  • job: Build
    displayName: Build
    continueOnError: false
    workspace:
    clean: all
    steps:
    • checkout: self
      fetchDepth: 0

    • task: gitversion/setup@3
      displayName: Install GitVersion
      inputs:
      versionSpec: '5.12.0'

    • task: gitversion/execute@3
      displayName: Determine Version
      inputs:
      updateAssemblyInfo: true

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

2024-08-19T20:46:13.9147963Z ##[section]Starting: Install GitVersion
2024-08-19T20:46:13.9500092Z ==============================================================================
2024-08-19T20:46:13.9500331Z Task         : Setup GitVersion Task
2024-08-19T20:46:13.9500411Z Description  : Easy Semantic Versioning (https://semver.org) for projects using Git
2024-08-19T20:46:13.9500588Z Version      : 3.0.0
2024-08-19T20:46:13.9500654Z Author       : GitTools Contributors
2024-08-19T20:46:13.9500733Z Help         : See the [documentation](https://gitversion.net/docs/) for help
2024-08-19T20:46:13.9500839Z ==============================================================================
2024-08-19T20:46:13.9933734Z ##[error]A supported task execution handler was not found. The task does not carry an implementation that is compatible with your current operating system 'Windows(X64)'. Contact the task author for more details.
2024-08-19T20:46:13.9947583Z ##[section]Finishing: Install GitVersion
@dreteddy
Copy link

Same issue on self hosted windows agent. Works on self hosted ubuntu agent and MS hosted agents

@willibrandon
Copy link

I just bumped into this issue myself.

@shieldsjared
Copy link

Also running into this. A quick google didnt lead me to a work around either. :/

@arturcic
Copy link
Member

@rodeoboy @dreteddy @willibrandon @shieldsjared that could be because of the agent version. We currently support

minimumAgentVersion: "3.224.0",

@arturcic
Copy link
Member

Can you tell me which version of the agents you have?

@rodeoboy
Copy link
Author

3.225.2
Is there any value in installing the gitversion dotnet tool directly to the self hosted build agent?

@arturcic
Copy link
Member

3.225.2
Is there any value in installing the gitversion dotnet tool directly to the self hosted build agent?

The tasks/actions are just opinionated wrappers of the tools. You can run the tools directly in your pipeline/workflow

@shieldsjared
Copy link

Can you tell me which version of the agents you have?

@arturcic - I've also got version 3.225.2.

@arturcic
Copy link
Member

Can you tell me which version of the agents you have?

@arturcic - I've also got version 3.225.2.

It seems to be an issue with the agent, and probably the version of nodejs microsoft/powerplatform-build-tools#491 (comment)

@arturcic
Copy link
Member

Can you check which version of nodejs you have? As the requirements are https://github.com/GitTools/actions/blob/main/dist%2Fazure%2Fgitversion%2Fsetup%2Ftask.json#L17

@shieldsjared
Copy link

@arturcic -

We've got build agent version 3.225.2 and NodeJS version 20.17.0. We initially had v16 (whoops!) but after upgrading to 20, we're still getting the issue.

After reviewing the extension code that you pointed out, it appears that this issue is something deeper than the gittools extension and likely something to do w/ the overall AzDO extension framework, so I'll keep at it. Appreciate the pointers!

@arturcic
Copy link
Member

@shieldsjared thanks for the updates, I will close this issue then as it's not related to gittools/actions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants