outsystems-pipeline icon indicating copy to clipboard operation
outsystems-pipeline copied to clipboard

Wrong reference for Validate Techincal Debt script

Open teresende opened this issue 11 months ago • 1 comments

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)'

teresende avatar Jul 20 '23 13:07 teresende