Skip to content

Commit

Permalink
Merge branch 'release/2.10' into ANDROAPP-6002-Modify-Date-storing-fo…
Browse files Browse the repository at this point in the history
…r-TimeZone-and-Daylight-Saving-Time-offset
  • Loading branch information
DavidAparicioAlbaAsenjo authored Apr 26, 2024
2 parents e1ac326 + 427b919 commit b58d47c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ pipeline {
BROWSERSTACK = credentials('android-browserstack')
form_apk = sh(returnStdout: true, script: 'find form/build/outputs -iname "*.apk" | sed -n 1p')
form_apk_path = "${env.WORKSPACE}/${form_apk}"
buildTag = "${env.GIT_BRANCH} - form"
}
steps {
dir("${env.WORKSPACE}/scripts"){
Expand All @@ -71,6 +72,7 @@ pipeline {
BROWSERSTACK = credentials('android-browserstack')
compose_table_apk = sh(returnStdout: true, script: 'find compose-table/build/outputs -iname "*.apk" | sed -n 1p')
compose_table_apk_path = "${env.WORKSPACE}/${compose_table_apk}"
buildTag = "${env.GIT_BRANCH} - table"
}
steps {
dir("${env.WORKSPACE}/scripts"){
Expand All @@ -89,6 +91,7 @@ pipeline {
test_apk = sh(returnStdout: true, script: 'find app/build/outputs -iname "*.apk" | sed -n 2p')
app_apk_path = "${env.WORKSPACE}/${app_apk}"
test_apk_path = "${env.WORKSPACE}/${test_apk}"
buildTag = "${env.GIT_BRANCH}"
}
steps {
dir("${env.WORKSPACE}/scripts"){
Expand Down
5 changes: 3 additions & 2 deletions scripts/browserstackJenkins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ json=$(jq -n \
--arg language "$browserstack_language" \
--arg locale "$browserstack_locale" \
--arg deviceLogs "$browserstack_deviceLogs" \
--arg allowDeviceMockServer "$browserstack_allowDeviceMockServer" \
--arg allowDeviceMockServer "$browserstack_allowDeviceMockServer" \
--argjson shards "$shards" \
'{devices: $devices, app: $app_url, testSuite: $test_url, class: $class, logs: $logs, video: $video, local: $loc, localIdentifier: $locId, gpsLocation: $gpsLocation, language: $language, locale: $locale, deviceLogs: $deviceLogs, allowDeviceMockServer: $allowDeviceMockServer, shards: $shards}')
--arg buildTag "$buildTag" \
'{devices: $devices, app: $app_url, testSuite: $test_url, class: $class, logs: $logs, video: $video, local: $loc, localIdentifier: $locId, gpsLocation: $gpsLocation, language: $language, locale: $locale, deviceLogs: $deviceLogs, allowDeviceMockServer: $allowDeviceMockServer, shards: $shards, buildTag: $buildTag}')

test_execution_response="$(curl -X POST https://api-cloud.browserstack.com/app-automate/espresso/v2/build -d \ "$json" -H "Content-Type: application/json" -u "$BROWSERSTACK_USR:$BROWSERSTACK_PSW")"

Expand Down
3 changes: 2 additions & 1 deletion scripts/browserstackJenkinsCompose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ json=$(jq -n \
--argjson devices ["$browserstack_device_list"] \
--arg video "$browserstack_video" \
--arg deviceLogs "$browserstack_deviceLogs" \
'{devices: $devices, testSuite: $module_url, video: $video, deviceLogs: $deviceLogs'})
--arg buildTag "$buildTag" \
'{devices: $devices, testSuite: $module_url, video: $video, deviceLogs: $deviceLogs, buildTag: $buildTag}')

test_execution_response="$(curl -X POST https://api-cloud.browserstack.com/app-automate/espresso/v2/module-build -d \ "$json" -H "Content-Type: application/json" -u "$BROWSERSTACK_USR:$BROWSERSTACK_PSW")"

Expand Down
3 changes: 2 additions & 1 deletion scripts/browserstackJenkinsForm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ json=$(jq -n \
--argjson devices ["$browserstack_device_list"] \
--arg video "$browserstack_video" \
--arg deviceLogs "$browserstack_deviceLogs" \
'{devices: $devices, testSuite: $module_url, video: $video, deviceLogs: $deviceLogs'})
--arg buildTag "$buildTag" \
'{devices: $devices, testSuite: $module_url, video: $video, deviceLogs: $deviceLogs, buildTag: $buildTag}')

test_execution_response="$(curl -X POST https://api-cloud.browserstack.com/app-automate/espresso/v2/module-build -d \ "$json" -H "Content-Type: application/json" -u "$BROWSERSTACK_USR:$BROWSERSTACK_PSW")"

Expand Down

0 comments on commit b58d47c

Please sign in to comment.