forked from javahometech/my-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
javahometech
authored
May 30, 2019
1 parent
e0df037
commit d1b6f4d
Showing
1 changed file
with
0 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,24 +2,6 @@ | |
stage('SCM Checkout'){ | ||
git 'https://github.com/javahometech/my-app' | ||
} | ||
stage('Compile-Package'){ | ||
|
||
def mvnHome = tool name: 'maven-3', type: 'maven' | ||
sh "${mvnHome}/bin/mvn package" | ||
} | ||
stage('Email Notification'){ | ||
mail bcc: '', body: '''Hi Welcome to jenkins email alerts | ||
Thanks | ||
Hari''', cc: '', from: '', replyTo: '', subject: 'Jenkins Job', to: '[email protected]' | ||
} | ||
stage('Slack Notification'){ | ||
slackSend baseUrl: 'https://hooks.slack.com/services/', | ||
channel: '#jenkins-pipeline-demo', | ||
color: 'good', | ||
message: 'Welcome to Jenkins, Slack!', | ||
teamDomain: 'javahomecloud', | ||
tokenCredentialId: 'slack-demo' | ||
} | ||
} | ||
|
||
|