nx-azure-build icon indicating copy to clipboard operation
nx-azure-build copied to clipboard

Nx cloud integration

Open elvirdolic opened this issue 4 years ago • 1 comments

Would be nice to see how does this work with nx cloud. I have set the nx cloud env variable but it doesn’t work

elvirdolic avatar Apr 09 '20 14:04 elvirdolic

This video shows you the basic setup for CI-CD: https://www.youtube.com/watch?v=w1-GiB74ddc

There are a couple steps unique to Azure DevOps.

In your pipeline add a variable. atx-apps-ci_-_Pipelines

Then, for each script in the azure-pipelines.yml, pass the variable in:

          - script: node ./tools/scripts/run-many.js '$(COMMANDS)' build1 build '$(environment)'
            env: { NX_CLOUD_AUTH_TOKEN: $(NX_CLOUD_AUTH_TOKEN) }

The first run will likely cache, but with subsequent builds you will see it read from the cache.

Hope this helps!

rinckd avatar Sep 06 '20 01:09 rinckd