Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- node {
- stage('Preparation') {
- git branch: 'master',
- credentialsId: 'jenkins_credential_id_goes_here',
- url: 'git@gitlab.cs.cf.ac.uk:c1717381/clientproject-team-7.git'
- }
- stage('Build') {
- sh 'chmod +x ./gradlew'
- sh './gradlew clean checkstyleMain build bootJar -Pprofiles=devops'
- }
- stage('Results') {
- junit 'build/test-results/test/*.xml'
- recordIssues(tools: [checkStyle(pattern: 'build/reports/checkstyle/main.xml')])
- }
- stage('Deploy') {
- sh 'JENKINS_NODE_COOKIE=dontKillMe nohup java -jar -Dspring.profiles.active=devops build/libs/asg.jar &'
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement