Skip to content

AzureDevops pipeline FAiling task:: Post-job: Activate Unity License #224

@jambstud

Description

@jambstud

Hello,

I'm using a simple AzureDevops pipeline and alsways is failing at this task: Post-job: Activate Unity License

Any recommendation to pass it over?

Pipeline looks :

stages:

  • stage: BuildUnity
    displayName: Build Unity
    jobs:
    • job: BuildUnity
      displayName: Build Unity
      pool:
      vmImage: 'windows-latest'

      steps:

      • task: UnityGetProjectVersionTask@1
        name: unitygetprojectversion
        displayName: Get Unity Project Version
        inputs:
        unityProjectPath: '$(unity.projectPath)'

      • task: PowerShell@2
        displayName: Install Unity
        condition: and(succeeded(), ne(variables['installCached'], true))
        inputs:
        targetType: 'inline'
        script: |
        Install-Module -Name UnitySetup -AllowPrerelease -Force -AcceptLicense

      • task: PowerShell@2
        displayName: Install Unity Components
        condition: and(succeeded(), ne(variables['installCached'], true))
        inputs:
        targetType: 'inline'
        script: |
        Install-UnitySetupInstance -Installers (Find-UnitySetupInstaller -Version '$(unitygetprojectversion.projectVersion)' -Components $(unity.installComponents)) -Verbose

      • task: UnityActivateLicenseTask@1
        displayName: Activate Unity License
        inputs:
        username: '$(unity.username)'
        password: '$(unity.password)'
        serial: '$(unity.serialkey)'
        unityEditorsPathMode: 'unityHub'
        unityProjectPath: '$(unity.projectPath)'

      • script: |
        echo $(unityactivation.logsOutputPath)

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions