Continuous Integration / Continuous Deployment (CI/CD)
There are many CICD systems, few examples being Jenkins and GitHub Actions.
This project is currently hosted on GitHub, and uses its Actions mechenism.
At the end of the day, all CI/CD system are capable of checking out source code from a source control system, and run Maven on that code. Just checkout your automation project and run Maven on it as described in Execution section.
For Jenkins, you should specify mode-jenkins profile.
GitHub Actions
See workflows for examples.
Jenkins
Following instructions apply to Windows machines:
choco install -y jenkins
– should be available at http://localhost:8080- install required plugins, beyond the default installation:
- Active Directory Plugin – allow log-in with AD/SSO credentials
- Maven Plugin – support for building Maven projects
- Configure Global Security
- Security Realm – Active Directory
- Global Tool Configuration
- JDK installations – something
like,
%ProgramFiles%\OpenJDK\jdk-8.0.292.10-hotspot
- Git installations – usually,
%ProgramFiles%\Git\cmd\git.exe
- JDK installations – something
like,
- Credentials
- add Global Credentials Store (Unrestricted)
- add SSH private key to this GitHub repo
There should be alternative commands for Mac and various Linux distros.
Next: Environment Setup