Angular CLI+Jenkins Pipeline

Can anyone please help or guide me on setting up  Angular  CLI  with Jenkins? I am  setting up  a Development environment for a new  Project
Frank DannyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Juana VillaFront-end DeveloperCommented:

Personally, I have never done this. But, I found this article. I hope it helps you.
Julian HansenCommented:
I don't think you will find a specific answer to your question as this is quite a narrowly focused question. We can try and help you point in the right direction.

If you Google Angular CLI +Jenkins you will find a few references to how to integrate these two. Most seem to focus on packages such as CircleCI 2.0, Travis CI and AppVeyor so you might need to interpolate how to implement in Jenkins.

The gist of it is

Angular CLI comes with the following commands

  •    ng new to initialize a new Angular project with a lot of settings.
  •    ng generate to generate something from a blueprint.
  •    ng serve to build the application and starts a web server.
  •    ng build to compile the application into an output directory.
  •    ng test to run your unit tests with Karma the provided test runner.
  •    ng lint to lint you app code using tslint to ensure best practices of Angular.

What you need to do is set these commands up in Jenkins so that when you do your commits and merges it runs the corresponding CLI command.

This article has more on the above
The article above gives a general overview of the process - it does not give Jenkins specific implementation details but does describe integration with AppVeyorand CircleCI 2.0.

Similar information is provided on one of the GitHub Angular CLI Stories

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.