Skip to content

Commit

Permalink
Create jenkins_declarative_pipeline.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
codvatechlabs authored Aug 7, 2023
1 parent 87c8d4f commit 018254c
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions Jenkins/jenkins_declarative_pipeline.yaml
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}"
}
}

}
}

0 comments on commit 018254c

Please sign in to comment.