Skip to content

Commit

Permalink
Create Jenkinsfile24
Browse files Browse the repository at this point in the history
  • Loading branch information
legah2045 authored Sep 18, 2024
1 parent fb83cc5 commit 8d2d120
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions Jenkinsfile24
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
pipeline{
agent any
tools{
maven 'maven3.9.9'
}
stages{
stage('1.GitClone'){
steps{
sh "echo cloning the latest app version"
git 'https://github.com/LandmakTechnology/maven-web-application'
}
}
stage('2.mavenbuild'){
steps{
sh "echo creating deployanle packages"
sh 'mvn clean package'
}
}
/*
stage('3.CodeQuality'){
steps{
sh "mvn sonar:sonar"
sh "echo CodeQualityAnalysis completed"
}
}
stage('4.UploadArtifacts'){
steps{
sh "mvn deploy"
sh "echo artifacts uploaded successfully"
sh "echo I am now a Build and Release Engineer"
sh "echo Build and release completed"
}
}
stage('5.Deploy2UAT'){
steps{
sh "echo Deployment is ready for the client review"
sh "echo using deploy to container plugin"
}
}
stage('6approval'){
steps{
sh "echo Deployment is ready for the client review"
sh "echo using deploy to container plugin"
echo "ready for inspection"
timeout(time:5, unit:'DAYS'){
input message: 'Application ready for deployment, Please review and approve'
}
}
}
*/
stage('7.Deploy2Prod'){
steps{
sh "echo application reviewed, approved and ready for the market"
emailext body: 'Hello Review and approve. ', subject: 'success', to: '[email protected]'
}
}
}

}

0 comments on commit 8d2d120

Please sign in to comment.