Skip to content

Instantly share code, notes, and snippets.

@derinbay
Created August 19, 2018 22:37
Show Gist options
  • Save derinbay/b3730371d1a08f2c59cbd49fd67accc6 to your computer and use it in GitHub Desktop.
Save derinbay/b3730371d1a08f2c59cbd49fd67accc6 to your computer and use it in GitHub Desktop.
node {
env.JAVA_HOME = '/usr/java/jdk1.8.0_172'
MAVEN_OPTS = '-Dtarget_platform=test'
stage('Checkout') {
git branch: 'preMaster',
credentialsId: '4b6a43f2-1097-471a-bf9f-8e41066b787c',
url: 'ssh://git@stash.n11.com:7999/web/dmall.git'
}
stage('Compile') {
withMaven(
maven: 'Maven-3.2.5',
mavenLocalRepo: '.repository') {
sh 'mvn -U clean compile -am -T 4 -DbuildNumber=${BUILD_NUMBER}'
}
}
/*stage('JS Deploy') {
withMaven(
maven: 'Maven-3.2.5',
mavenLocalRepo: '.repository') {
sh '/data/scripts/LiquibaseValidator.sh'
sh "mvn -pl mallfront,selleroffice -am clean test -U -T 4 -DskipDaoTest=true -DskipUnitTest=true -P fast,scalate"
}
}*/
stage('Unit Tests') {
withMaven(
maven: 'Maven-3.2.5',
mavenLocalRepo: '.repository') {
sh 'mvn -U test -am -P fast -T 4 -DjsDeploySkip=true -DbuildNumber=${BUILD_NUMBER}'
}
}
stage('Integration Tests') {
withMaven(
maven: 'Maven-3.2.5',
mavenLocalRepo: '.repository') {
sh 'mvn -U verify -am -P fast -T 4 -DjsDeploySkip=true -DskipUnitTest=true -DbuildNumber=${BUILD_NUMBER}'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment