Jenkins Parameters
- Jenkins Parameters helps in getting additional information during the build. User can pass options
- Lets create a choice parameter in freestyle project
- Lets acheive the same in the Declarative Pipeline
- Refer Here for the declarative pipeline
- Refer Here for the parameter documentation
- Refer Here for the changes done to include parameters
- Now lets check in the Jenkins UI
Triggers in Declarative Pipeline
- Lets add the day build trigger i.e. POLL SCM Every minute Refer Here for the changes
- Please refer classroom video for demonstration purposes
Notifications
Email Notifications
- For email configurations, we have SMTP servers which we need to configure on the Jenkins
- Create an account in mail trap Refer Here
- Create one inbox
- Get the credentials from the mail trap
- Now Navigate to Manage Jenkins => Configure System => Email Notification and configure SMTP
- Configure Email Notifications
Link to upload Activity Completions
- Refer Here to submit the activity to build the project via scripted, declarative pipeline
