Skip to content

Wrong reference for Validate Techincal Debt script #61

@teresende

Description

@teresende

Hi,
I was getting this error on my pipeline:

##[error]ENOENT: no such file or directory, stat '/home/vsts/work/1/scripts/tech_debt_validation.py'

It seems to be because the checked-out repository code goes to /home/vsts/work/1/s directory by default if not specified.

In our case, we fixed the issue by creating a new variable and changing this line:

https://github.com/OutSystems/outsystems-pipeline/blob/c8007f8cbbc70767bf87c8eb276e29253b5826fd/examples/azure_devops/multistage/jobs/ValidateTechnicalDebtJob.yaml#L36C13-L36C13

to: scriptPath: '$(Build.SourcesDirectory)$(AIMentorStudio.PathToScript)'

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