Skip to content

Eran sol #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
50 changes: 50 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
pipeline {
agent any
stages {
stage('check out code') {
steps {
git(url: 'https://github.com/EranFass/spring-boot-examples.git', branch: 'eran_sol', changelog: true)
}
}

stage('maven compile') {
steps {
sh '''cd spring-boot-package-war
mvn compile'''
}
}

stage('test') {
steps {
sh '''cd spring-boot-package-war
mvn test'''
sh '''cd spring-boot-package-war
mvn test'''
}
}

stage('incremant') {
steps {
sh '''cd spring-boot-package-war
mvn build-helper:parse-version versions:set -DnewVersion=0.0.2.$BUILD_ID-SNAPSHOT versions:commit

'''
}
}

stage('packege {mvn clean packege}') {
steps {
sh '''cd spring-boot-package-war
mvn clean package
'''
}
}

stage('slack') {
steps {
slackSend(token: '88MKFRxoVHUPEqYExlB9P59f', channel: 'int-project', message: 'new mvn build bitchesss', notifyCommitters: true)
}
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ public class HelloWorldController {

@RequestMapping("/hello")
public String index() {
return "Hello World xx";
return "Hello World";
}
}