- Create a Ubuntu Box (I am using Azure)
- Install Docker
- Install Java: https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-on-ubuntu-18-04
- Install Jenkins: https://www.jenkins.io/doc/book/installing/linux/
- Access it: IP_Linux:8080
- Put the Passoword first.
- Run command: sudo su -root => cd /var/lib/jenkins/secrets => cat initialAdminPassword => Copy the password and paste it on the Web browser
For POC Only: select Install suggestion plugin
- Create a new Pipeline
- Set Repository URL under Git block
- Change branch name from master to main
- Set Script Path: AccessGitRepo/Jenkinsfile
- Click on Save and trigger a build.
- Create a new Pipeline
- Set Repository URL under Git block
- Change branch name from master to main
- Set Script Path: RunScript/Jenkinsfile
- Click on Save and trigger a build.
- Create a new Pipeline
- Set Repository URL under Git block
- Change branch name from master to main
- Set Script Path: InputParameter/Jenkinsfile
- Click on Save and trigger a build.
- Create a new Secret: sam-name
- Create a new Pipeline
- Set Repository URL under Git block
- Change branch name from master to main
- Set Script Path: Secret/Jenkinsfile
- Click on Save and trigger a build.
Ref link: https://www.pluralsight.com/courses/using-declarative-jenkins-pipelines