Skip to content

Commit

Permalink
fix(build): Only deploy master
Browse files Browse the repository at this point in the history
  • Loading branch information
hypery2k committed Jul 14, 2018
1 parent 8adf86e commit bd26eb1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Jenkinsfile_dev
Expand Up @@ -7,7 +7,7 @@ properties([
])

@Library('mare-build-library')
def maven = new de.mare.ci.jenkins.Maven()
def git = new de.mare.ci.jenkins.Git()

node('docker') {

Expand All @@ -30,11 +30,12 @@ node('docker') {
sh "./mvnw clean install -U"
}

stage('Deploy') {
if (git.isProductionBranch()) {
sshagent(credentials: ['github-hypery2k']) {
sh "./mvnw deploy -DskipTests=true"
}
}

} catch (e) {
mail subject: 'Error on build', to: 'github@martinreinhardt-online.de', body: "Please go to ${env.BUILD_URL}."
throw e
Expand Down

0 comments on commit bd26eb1

Please sign in to comment.