declare all parameters, fix names of files on release (#1392)

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub 2019-02-25 15:59:12 +01:00 committed by Igor Mandrigin
parent 51ff6395b8
commit 0238d84924
6 changed files with 49 additions and 4 deletions

View File

@ -220,7 +220,6 @@ release:
gomobile-install:
go get -u golang.org/x/mobile/cmd/gomobile
gomobile init
release-install:
go get -u github.com/c4milo/github-release

View File

@ -2,10 +2,15 @@ pipeline {
agent { label 'linux' }
parameters {
string(
name: 'BRANCH',
defaultValue: 'develop',
description: 'Name of branch to build.'
)
booleanParam(
name: 'RELEASE',
description: 'Enable to create a new release on GitHub and DigitalOcean Space.',
defaultValue: false,
description: 'Enable to create a new release on GitHub and DigitalOcean Space.',
)
}

View File

@ -1,6 +1,19 @@
pipeline {
agent { label 'linux' }
parameters {
string(
name: 'BRANCH',
defaultValue: 'develop',
description: 'Name of branch to build.'
)
booleanParam(
name: 'RELEASE',
defaultValue: false,
description: 'Enable to create build for release.',
)
}
options {
timestamps()
disableConcurrentBuilds()

View File

@ -1,6 +1,19 @@
pipeline {
agent { label 'macos' }
parameters {
string(
name: 'BRANCH',
defaultValue: 'develop',
description: 'Name of branch to build.'
)
booleanParam(
name: 'RELEASE',
defaultValue: false,
description: 'Enable to create build for release.',
)
}
options {
timestamps()
disableConcurrentBuilds()

View File

@ -1,6 +1,19 @@
pipeline {
agent { label 'linux' }
parameters {
string(
name: 'BRANCH',
defaultValue: 'develop',
description: 'Name of branch to build.'
)
booleanParam(
name: 'RELEASE',
defaultValue: false,
description: 'Enable to create build for release.',
)
}
options {
timestamps()
disableConcurrentBuilds()

View File

@ -62,8 +62,10 @@ def buildBranch(name = null, buildType = null) {
/* this allows us to analize the job even after failure */
propagate: false,
parameters: [
[name: 'BRANCH', value: branchName, $class: 'StringParameterValue'],
])
[name: 'BRANCH', value: branchName, $class: 'StringParameterValue'],
[name: 'RELEASE', value: params.RELEASE, $class: 'BooleanParameterValue'],
]
)
/* BlueOcean seems to not show child-build links */
println "Build: ${resp.getAbsoluteUrl()} (${resp.result})"
if (resp.result != 'SUCCESS') {