OutSystems / outsystems-pipeline

Python package and pipeline examples to accelerate the integration of OutSystems with third-party CI/CD tools
Apache License 2.0
38 stars 54 forks source link

Azure DevOps Outsystems-pipeline 0.6.0 build error #55

Closed ado-os-user closed 1 year ago

ado-os-user commented 1 year ago

Installing OutSystems Pipeline Package is successfull with 0.6.0

Collecting xunitparser==1.3.4 (from outsystems-pipeline==0.6.0)

But Fetch Lifetime Data task is failing with below error

LifeTimeHostname : The term 'LifeTimeHostname' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

image

duarte-castano commented 1 year ago

Hello @ado-os-user,

The fetch_lifetime_data script was not modified for this version of the package (0.6.0). Just to be sure, I've tested the script and it works as expected.

If you think the new version of the package is impacting your pipeline, you can lock the desired version when installing it. Example: pip install outsystems-pipeline==0.5.0

Have you double-checked if the variables in the Variable Group are correctly configured? Have you double-checked if the variables within the script call match the ones in the Variable Group?

Here is the script call that worked for me:

  - script: >
      python -m outsystems.pipeline.fetch_lifetime_data
      --artifacts "$(Artifacts.Folder)" 
      --lt_url $(LifeTime.Hostname) 
      --lt_token $(LifeTime.ServiceAccountToken) 
      --lt_api_version $(LifeTime.APIVersion) 
    displayName: 'Fetch LifeTime Data'

Also, you may have interest in our new template that uses Mulistage pipelines in Azure DevOps