-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create jenkins_declarative_pipeline.yaml
- Loading branch information
1 parent
87c8d4f
commit 018254c
Showing
1 changed file
with
46 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
pipeline { | ||
agent any | ||
|
||
stages { | ||
stage('Build') { | ||
steps { | ||
echo 'I am in Build Phase' | ||
} | ||
} | ||
|
||
stage('Test') { | ||
steps { | ||
echo 'I am in Test Phase' | ||
} | ||
} | ||
|
||
stage('Deploy') { | ||
steps { | ||
echo 'I am in Deploy Phase' | ||
} | ||
} | ||
stage('VersionCheck') { | ||
steps { | ||
echo 'I am in Version Phase' | ||
} | ||
} | ||
stage('Monitoring') { | ||
steps { | ||
echo 'I am in monitoring phase' | ||
} | ||
} | ||
stage('Testing') { | ||
steps { | ||
echo 'I am in monitoring phase' | ||
} | ||
} | ||
stage('Slack Message') { | ||
steps { | ||
slackSend channel: '#devops-alerts', | ||
color: 'good', | ||
message: "*${currentBuild.currentResult}:* Job ${env.JOB_NAME} build ${env.BUILD_NUMBER}\n More info at: ${env.BUILD_URL}" | ||
} | ||
} | ||
|
||
} | ||
} |