Groovy DSL Jenkins File Approch
Task Description
1.
Create container image that has
Jenkins installed using Docker file or you can use Jenkins server on RHEL 8.
2.
When we launch this image it should
automatically start Jenkins service in the container.
3.
Create a Job chain of Job1, Job2,
Job3 and Job4 using build pipeline plugin in Jenkins.
4.
Further on Jobs should be pipeline
using writing code using groovy language by the developer.
a.
JOB1 –
i. By
looking at the code or program file, Jenkins should automatically start the
respective language interpreter installed image container to deploy code on top
of kubernetes (eg. If code is of PHP, then Jenkins should start the container
that has PHP already installed.)
ii. Expose
your Pod so that testing team could perform the tasting on the Pod.
iii. Make
the data to remain persistent using PVC (if server collects some data like
logs, other user information.)
b.
JOB2 –
Pull the
github repo automatically when some developers push repo to github.
c.
JOB3 –
Test your app if it is working or not.
d.
JOB4 –
If app is not working, then send email to developer with error messages
and redeploy the application after code is being edited by the developer.

Comments
Post a Comment