fix declaration location of build_no variables

This commit is contained in:
Jakub Sokołowski 2018-06-12 12:43:12 +02:00 committed by Jakub
parent 9ac95d3ed8
commit e54c3c3aed
4 changed files with 9 additions and 5 deletions

View File

@ -22,7 +22,8 @@ timeout(90) {
def apkUrl = ''
def ipaUrl = ''
def testPassed = true
def version;
def version
def build_no
load "$HOME/env.groovy"
@ -53,7 +54,7 @@ timeout(90) {
usernameVariable: 'GIT_USER',
passwordVariable: 'GIT_PASS'
]]) {
def build_no = sh(
build_no = sh(
returnStdout: true,
script: './scripts/build_no.sh --increment'
).trim()

View File

@ -23,6 +23,7 @@ timeout(90) {
def ipaUrl = ''
def testPassed = true
def version
def build_no
load "$HOME/env.groovy"
@ -53,7 +54,7 @@ timeout(90) {
usernameVariable: 'GIT_USER',
passwordVariable: 'GIT_PASS'
]]) {
def build_no = sh(
build_no = sh(
returnStdout: true,
script: './scripts/build_no.sh --increment'
).trim()

View File

@ -23,6 +23,7 @@ timeout(90) {
def ipaUrl = ''
def testPassed = true
def version
def build_no
load "$HOME/env.groovy"
@ -57,7 +58,7 @@ timeout(90) {
usernameVariable: 'GIT_USER',
passwordVariable: 'GIT_PASS'
]]) {
def build_no = sh(
build_no = sh(
returnStdout: true,
script: './scripts/build_no.sh --increment'
).trim()

View File

@ -23,6 +23,7 @@ timeout(90) {
def ipaUrl = ''
def testPassed = true
def version
def build_no
load "$HOME/env.groovy"
@ -56,7 +57,7 @@ timeout(90) {
usernameVariable: 'GIT_USER',
passwordVariable: 'GIT_PASS'
]]) {
def build_no = sh(
build_no = sh(
returnStdout: true,
script: './scripts/build_no.sh --increment'
).trim()