Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ pipeline {
}
}
}

stage('Build') {
steps {
buildSdk()
}
}

stage('QA') {
steps {
withEnv(['DOCKER_HOST=',
Expand Down Expand Up @@ -89,6 +96,12 @@ pipeline {
}
}

stage('Package') {
steps {
packageArtifacts()
}
}

stage('Publish[staging]') {
when {
not {
Expand Down Expand Up @@ -309,7 +322,9 @@ void defaultInit() {

// Language specific implementations of the methods:
// applyCustomizations()
// buildSdk()
// runTests()
// packageArtifacts()
// publishStaging()
// publishPublic()
// publishDocs()
Expand Down Expand Up @@ -339,11 +354,19 @@ void applyCustomizations() {
}
}

void buildSdk() {
sh 'mvn install --settings build/jenkins.settings.xml -DskipTests -DskipITs -Dmaven.javadoc.skip=true'
}

void runTests() {
// Allow tests to run classes in parallel
sh 'mvn verify -DperCoreThreadCount=false -DthreadCount=2 -Dparallel=classes --settings build/jenkins.settings.xml'
}

void packageArtifacts() {
sh 'mvn install -DskipTests -DskipITs --settings build/jenkins.settings.xml'
}

void publishStaging() {
publishMaven('-P staging')
}
Expand Down
Loading