4. Setting up Master Server
● Master server - EC2 amazon linux c4.2xlarge
● Prerequisites – Java
● Jenkins installation
● Jenkins launched as a daemon on startup
● Logs - /var/lib/jenkins/jenkins.log
6. ● Amazon EC2
● ssh plugins
● Windows slaves
● Github Oauth
● Github Pull Request builder plugin
● View Jobs Filter
Commonly used Jenkins Plugins
7. ● Prepare images with tools build and testing
● OS platforms
● Node versions
● ec2-plugin – new feature programatically updates the
AMI ID using Groovy
● Add a cloud from Jenkins admin console
● Add images to cloud and configure it
● Launch instances on-demand/or
● Connect using ssh agent
● Manage nodes from Jenkins
Jenkins – EC2 cloud
13. Jenkins Jobs configuration
● Repository settings
● Build Parameters
● Integration with Slack
● Build triggers
● Configuration matrix
● Build/Test scripts
● Post Build Actions
● Email notifications
14. CI Infrastructure
● Bridge between StrongLoop's repositories on
GitHub and their corresponding Jenkins jobs
● Every new project that needs to build in Jenkins
is handled by this framework
● Templatized job configurations
● Saves time by avoiding manual creation /
configuration / maintenance of jobs.
● Serves as Backup
15. A tool for building/testing NPM packages in
development on CI (Jenkins).
● Sanity checks
● Linter
● Install dependencies
● Artifact generation
● Run tests
● Generate coverage report
● Summarize report of all the tests
StrongLoop's Build-Framework
16. Example of a summarized report at the end of the
job's console log
17. ● Node Test tools
● Mocha
● Coverage – nyc & istanbul
● TAP
● Coverage reports
● Cobertura (screenshot next page)
Node tests and Code Coverage
19. Jenkins API & Automation
Remote access API to its functionalities-
Rest style API's and they are available under the
".../api/" URL
API's used to build -
● Consolidated Test Report
● Consolidated Code Coverage Reports
Screenshots next page..