Chandra2513 / Training-1

0 stars 0 forks source link

Pipeline email #1

Open Chandra2513 opened 2 weeks ago

Chandra2513 commented 2 weeks ago

1

pipeline{

2

34

stages{

agent any

stage('Code Pull'){

5

steps(

6

git branch: 'main', url: 'https://github.com/Devops9AM/Rigstrat

7

}

8

}

9

}

10

11

post

12

13

14

15

failure(

emailext subject: "Failed:\${JOB_NAME} \${BUILD_NUMBER)",

body: "Hi Your Build was Something went Wrong, Please Check the Build a to: "ravindra.devops@gmail.com", from: "cloudgen0011@gmail.com"

16

17

} success(

18

19

20

21

22

emailext subject: "Successful:\S(JOB_NAME} \${BUILD_NUMBER)",

body: "Hi Your Build was Successful, Please Check the Build at \${BUILD to: "ravindra.devops@gmail.com",

from: "cloudgen0011@gmail.com"

23

}

24

25

Chandra2513 commented 2 weeks ago

Pipeline