configure
- Jenkins general configuration
Jenkins location
URL
: http://localhost:8080 (default)System Admin E-mail Address
: [email protected]
Global properties
- Some envs are automatically available in the build phase. E.g.,
- $BUILD_NUMBER
- $BUILD_ID
- $BUILD_URL
- $JOB_NAME
- You can configure a list of custom
environment variables
too
SSH Remote Hosts
- Configure SSH connections
Hostname
: remote-hostPort
: 22Credentials
: created at- Test the connection
E-mail Notification
-
AWS SES
-
SMTP Server: email-smtp.sa-east-1.amazonaws.com
- Use SMTP authentication
- SMTP Username: user created in AWS SES
- SMTP Password: pass created in AWS SES
- Use SSL: true
- SMTP Port: 465
- Reply-To Address: [email protected]
-
Set system admin email address at Jenkins Location
-
Gmail
-
SMTP server: smtp.gmail.com
- Use SMTP authentication: your email & password
- In gmail settings allow Less secure apps
-
The job must be configured with a publisher
E-mail notification
->Post-build Action
under- Send email for every unstable build
- Send separate emails to individuals who broke the build
Github
- Add git server to enable
webhook
job triggering - Adds a URL where jenkins listens for code changes in git repository
- On the github/gitlab repository, on
integrations
you must mention the url provided by jenkins