-
Notifications
You must be signed in to change notification settings - Fork 12k
Jenkins Integration #6377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
E.g. Is there a karma.conf template for jenkins? |
Thinking about it, my question is probably not that clear and might be more Angular 4 related than Angular CLI... |
I have a Jenkins CI job setup that runs and builds angular... As a part of the Jenkins job we do not install the CLI globally on our build machines at all, but instead call We also do testing with I hope that this is helpful but if you need anything more specific I'd be happy to help you out. |
@BustyLoli-Chan thanks a lot for your answer. That's very helpful. For some reason I thought I'd need a headless browser, but I am having issues getting it working with PhantomJS. One question: Did you also use a |
Package.json It wasn't necessary to make a symlink since running an npm install just downloads and puts the "binaries" in the local directory. |
@BustyLoli-Chan Thanks! Hmm.. that's odd.. in our installation it wasn't able to find/use 'ng' in the project folder, even after running |
we are windows machines. I don't know if Most of our
I realize this actually different from what I first told you because technically it's running npm which is installed globally and npm is doing the intermittent lookup work to find the CLI and run its stuff |
@BustyLoli-Chan Oh okay! That makes sense though. Thanks for the explanation! |
Thanks again for your help. So there were several things that confused me:
What I ended up doing was:
This is how our
Thanks again for all your help 👍 |
Hi all, I just set everything up to use PhantomJS in my Angular4 project. I've uncommented all the Does anyone know how would be happening? Cristóbal |
@cbeldacap: As stated above phantomjs doesn't support es6, so it will choke on any 'const' variables in your test-code. |
I could finally solve it importing some polyfills! (and some others not) :)
Already solved and totally working! |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
Repro steps.
Created a project with angular CLI. Created a project on Jenkins using following shell execution steps:
The log given by the failure.
n/a
Desired functionality.
I would like to integrate a project using Angular CLI onto our Jenkins server.
Mention any other details that might be useful.
I don't have a lot of Jenkins configuration experience, but from how it looks like it is not that simple out of the box. We are running compass on our Jenkins server, we have NPM version
4.6.1
on our Jenkins server. However, it looks like I need to adjust the configuration quite a bit more. Like changing Chrome to PhantomJS, convert the istanbul reports to cobertura reports etc.I even created a symlink for angular cli in the project, so we don't have to install it globally on the server using:
ln -s node_modules/@angular/cli/bin/ng ng
.I feel like I am missing something obvious and all these steps shouldn't be necessary. Unfortunately I am not finding any documentation about CI integration here or somewhere else (google...).
Could you give me some pointers/hints please?
The text was updated successfully, but these errors were encountered: