Skip to content

[Bug] Version 5.10 is causing "SyntaxError: Unexpected end of JSON input" error #3081

Closed
@ebbz

Description

@ebbz

Describe the bug
Version 5.10 is causing "SyntaxError: Unexpected end of JSON input" error
afbeelding

Failing build:
afbeelding
Normal working build:
afbeelding

Expected Behavior

No errors

Actual Behavior

I believe this is because since version 5.10 the variable 'Branch from build environment: ' is not being set.

Possible Fix

Make sure the variable is set again

Steps to Reproduce

Context

We always use the newest version fi gitvesion, since the update a few hours ago, our builds stopped working.

Your Environment

Azure DevOps (private environment)

  • Version Used:
    Agent name: 'Azure Pipelines 2'
    Agent machine name: 'WIN-MGDD5L23JQP'
    Current agent version: '2.202.0'
    Operating System
    Virtual Environment
    Virtual Environment Provisioner
    Current image version: '20220330.1'
    Agent running as: 'VssAdministrator'
    Prepare build directory.
    Set build variables.
    Download all required tasks.
    Downloading task: gitversion/setup (0.9.13)
    Downloading task: gitversion/execute (0.9.13)
    Downloading task: NodeTool (0.200.0)
    Downloading task: Npm (1.198.0)
    Downloading task: DotNetCoreCLI (2.198.0)
    Downloading task: reportgenerator (5.1.4)
    Downloading task: PublishCodeCoverageResults (1.200.0)
    Downloading task: Gitleaks (2.2.16)
    Downloading task: PublishBuildArtifacts (1.200.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions