declare all parameters, fix names of files on release (#1392)
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
51ff6395b8
commit
0238d84924
1
Makefile
1
Makefile
|
@ -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
|
||||||
|
|
|
@ -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.',
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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') {
|
||||||
|
|
Loading…
Reference in New Issue