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: gomobile-install:
go get -u golang.org/x/mobile/cmd/gomobile go get -u golang.org/x/mobile/cmd/gomobile
gomobile init
release-install: release-install:
go get -u github.com/c4milo/github-release go get -u github.com/c4milo/github-release

View File

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

View File

@ -1,6 +1,19 @@
pipeline { pipeline {
agent { label 'linux' } 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 { options {
timestamps() timestamps()
disableConcurrentBuilds() disableConcurrentBuilds()

View File

@ -1,6 +1,19 @@
pipeline { pipeline {
agent { label 'macos' } 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 { options {
timestamps() timestamps()
disableConcurrentBuilds() disableConcurrentBuilds()

View File

@ -1,6 +1,19 @@
pipeline { pipeline {
agent { label 'linux' } 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 { options {
timestamps() timestamps()
disableConcurrentBuilds() disableConcurrentBuilds()

View File

@ -62,8 +62,10 @@ def buildBranch(name = null, buildType = null) {
/* this allows us to analize the job even after failure */ /* this allows us to analize the job even after failure */
propagate: false, propagate: false,
parameters: [ 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 */ /* BlueOcean seems to not show child-build links */
println "Build: ${resp.getAbsoluteUrl()} (${resp.result})" println "Build: ${resp.getAbsoluteUrl()} (${resp.result})"
if (resp.result != 'SUCCESS') { if (resp.result != 'SUCCESS') {