Created
August 19, 2018 22:37
-
-
Save derinbay/b3730371d1a08f2c59cbd49fd67accc6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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://[email protected]: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