Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
pipeline {
agent any
tools {
maven "maven3.8.4"
}
stages{
stages('Gitclone') {
steps{
sh "echo clone the latest applicatios version"
git https://github.com/Pline-org/Maven-web-application
}
}
stages('Testbuild'){
steps{
sh "echo Running unitTesting"
sh "echo unitTesting ok. Creating packages"
sh "mvn clean package"
sh "echo Artifacts created"
}
}
stages('codeQuality'){
steps{
sh "echo Running codeQuality Report"
sh "mvn sonar:sonar"
}
}
stages('uploadArtifacts'){
steps{
sh "echo uploadArtifacts into nexus"
sh "mvn deploy"
}
}
Deploy to docker
pipeline{
agent any
stages{
stages( 'predeployment'){
steps{
sh "docker build"
// sh "docker login -u mylamndmarktech"
sh "docker push"
}