SHARE
TWEET

Untitled

a guest Mar 21st, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. node {
  2.    stage('Preparation') {
  3.       git branch: 'master',
  4.           credentialsId: 'jenkins_credential_id_goes_here',
  5.           url: 'git@gitlab.cs.cf.ac.uk:c1717381/clientproject-team-7.git'
  6.    }
  7.    stage('Build') {
  8.       sh 'chmod +x ./gradlew'
  9.       sh './gradlew clean checkstyleMain build bootJar -Pprofiles=devops'
  10.    }
  11.    stage('Results') {  
  12.       junit 'build/test-results/test/*.xml'
  13.       recordIssues(tools: [checkStyle(pattern: 'build/reports/checkstyle/main.xml')])
  14.    }
  15.    stage('Deploy') {
  16.       sh 'JENKINS_NODE_COOKIE=dontKillMe nohup java -jar -Dspring.profiles.active=devops build/libs/asg.jar &'
  17.    }
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top