- new an item and select Mutilbranch pipeline
- Branch Sources-Git-enter Peoject repository and select Credentials(if not, you should add one)
- Build Configureation-enter your jenkinsfile name
- JenkinsFile exmaple:
-
pipeline { agent any environment { sendmail = 'yes' recipients = &