Skip to content

Commit

Permalink
Simplifies build script and fixes release publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
ujhelyiz committed Apr 10, 2020
1 parent 9ed3e84 commit fe09c4b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,14 @@ pipeline {
}
parameters {
string(name: 'RELEASE_VERSION', defaultValue: '',
description: 'Set this parameter to the VIATRA version this V4MD build should include (e.g. 2.0.0.M3) and set the project version version accordingly. Leave it empty to skip this step.')
string(name: 'INCUBATION_VERSION', defaultValue: '',
description: 'Set this parameter to the corresponding incubation version of the related VIATRA release.')
string(name: 'PLUGIN_VERSION', defaultValue: '',
description: 'Set this parameter to the desired V4MD version.')
string(name: 'BUILD_NUMBER', defaultValue: '',
description: 'Set this parameter to the desired MD internal version.')
description: 'Set this parameter to update the project version version accordingly, should be used to remove -SNAPSHOT from version numbers. Leave it empty to keep version from the repository.')
}
// Keep only the last 5 builds
options {
buildDiscarder(logRotator(numToKeepStr: '5'))
}
environment {
VERSION_STRINGS = "${params.PLUGIN_VERSION ? '-Pversion=' + params.PLUGIN_VERSION : ''} ${params.RELEASE_VERSION ? '-PviatraVersion=' + params.RELEASE_VERSION : ''} ${params.INCUBATION_VERSION ? '-PviatraIncubationVersion=' + params.INCUBATION_VERSION : ''} ${params.BUILD_NUMBER ? '-PbuildNumber=' + params.BUILD_NUMBER : ''}"
VERSION_STRINGS = " ${params.RELEASE_VERSION ? '-Pversion=' + params.RELEASE_VERSION : ''} "
TEAMS_NOTIFICATION_URL = credentials('v4md-teams-channel-url')
}

Expand Down

0 comments on commit fe09c4b

Please sign in to comment.