Skip to content

Commit

Permalink
Update jenkin
Browse files Browse the repository at this point in the history
  • Loading branch information
tdevout authored Feb 13, 2023
1 parent d7740a7 commit 73d27b5
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions jenkin
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,27 @@ pipeline {
}
}
}


---

pipeline {
agent any
stages {
stage('Test Email Configuration') {
steps {
script {
def to = "[email protected]"
def subject = "Test Email from Jenkins"
def body = "This is a test email sent from Jenkins pipeline"
def buildResult = currentBuild.currentResult
if (buildResult == 'SUCCESS') {
emailnotify to: "${to}", subject: "${subject}", body: "${body}",
replyTo: "${params.from}", mimeType: 'text/html'
}
}
}
}
}
}

0 comments on commit 73d27b5

Please sign in to comment.