Nx: CI Integrations (Azure and Jenkins)

Created on 21 Dec 2017  路  13Comments  路  Source: nrwl/nx

Provide examples for different CI providers

Azure example: https://github.com/nrwl/nx-azure-build

misc feature

Most helpful comment

Sorry for the wait, folks.

We are in the process of making distributed CI setups more straightforward. It's wrapping up.

I'm about to publish an example of a Jenkins setup with multiple agent nodes. Should be done next week.

@isaacplmann is also working on a course that will cover CI. It should come out in the next month or so.

All 13 comments

I am looking for an "idomatic" way to handle a nx project in gitlab CI / CD. Is there anything planned to provide this? Or can anybody give me an example?

Definitely waiting for this!

Hi @vsavkin any progress in this? Where could I contribute to add Jenkins X example?

Sorry for the wait, folks.

We are in the process of making distributed CI setups more straightforward. It's wrapping up.

I'm about to publish an example of a Jenkins setup with multiple agent nodes. Should be done next week.

@isaacplmann is also working on a course that will cover CI. It should come out in the next month or so.

How's this going? Any updates?

I am currently trying to implement this in Jenkins so very interested in what you come up with. Currently I can't even get past format:check I get the error fatal: Not a valid object name origin/develop

+ npm run format:check -- --base=origin/develop



> @myscope/[email protected] format:check /opt/appserver/jenkins/workspace/webui_feature_migrate-to-nx-repo

> nx format:check "--base=origin/develop"

fatal: Not a valid object name origin/develop

I also tried

  • base=remotes/origin/develop
  • not specifying so it would be equal to base=master

Using the sha seems to work

Sorry for the wait, folks.

We are in the process of making distributed CI setups more straightforward. It's wrapping up.

I'm about to publish an example of a Jenkins setup with multiple agent nodes. Should be done next week.

@isaacplmann is also working on a course that will cover CI. It should come out in the next month or so.

Any update on this one? I'm also really struggling with a good config for jenkins with a couple of angular and a react projects 馃槗

@mbriggs is working on it

@mbriggs - can I get a preview? :-) Is there a special way that you need to configure your Jenkins multi-branch pipeline so that the affected scripts will work? Do you have to do something so that it fetches all branches?

Is there any way I can use origin/master instead of master? The branch hasn't been pulled yet, so we need to use from origin (or remote)

Here are example repos for Azure and Jenkins:

https://github.com/nrwl/nx-azure-build
https://github.com/nrwl/nx-jenkins-build

The readmes from these repos will soon be included in the nx.dev docs.

Great job! GitLab would have been also really appreciated though.

Closing this issue as we now have guides for Azure and Jenkins :tada:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SWGeekPD picture SWGeekPD  路  3Comments

zpydee picture zpydee  路  3Comments

elliotmendiola picture elliotmendiola  路  3Comments

zachnewburgh picture zachnewburgh  路  3Comments

jon301 picture jon301  路  3Comments