add parameter definition

This commit is contained in:
Jakub Sokołowski 2018-08-15 13:45:46 -04:00
parent b47df0f103
commit 3cbea8c396
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 10 additions and 0 deletions

10
Jenkinsfile vendored
View File

@ -1,3 +1,12 @@
properties([
parameters([
string(
name: 'APK_URL',
description: 'URL for the Android mobile app release.'
)
])
])
def website_host = 'node-01.ac-cn-hongkong-c.web.misc.statusim.net' def website_host = 'node-01.ac-cn-hongkong-c.web.misc.statusim.net'
node('linux') { node('linux') {
@ -14,6 +23,7 @@ node('linux') {
} }
stage('Build') { stage('Build') {
env.APK_URL = params.APK_URL
sh 'npm run build' sh 'npm run build'
} }