-
Notifications
You must be signed in to change notification settings - Fork 986
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also: - add ci/tests/Jenkinsfile.e2e-prs - remove maybe_later_button click after new onboarding - update job name for e2e tests - Fix testrail checklist creationg for nightly builds Signed-off-by: Jakub Sokołowski <[email protected]>
- Loading branch information
Showing
8 changed files
with
94 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
pipeline { | ||
|
||
agent { label 'linux1' } | ||
|
||
parameters { | ||
string( | ||
name: 'BRANCH_NAME', | ||
description: 'Name of the branch to checkout and build.', | ||
defaultValue: 'develop', | ||
) | ||
string( | ||
name: 'NETWORK', | ||
description: 'Name of test network to use.', | ||
defaultValue: 'ropsten', | ||
) | ||
string( | ||
name: 'TEST_MARKERS', | ||
description: 'Marker expression for matching tests to run.', | ||
defaultValue: 'critical or high', | ||
) | ||
string( | ||
name: 'APK_NAME', | ||
description: 'Filename of APK uploaded to SauceLabs, path, or URL.', | ||
) | ||
string( | ||
name: 'PR_ID', | ||
description: 'ID of the Pull Request triggering this build.', | ||
) | ||
} | ||
|
||
options { | ||
disableConcurrentBuilds() | ||
} | ||
|
||
stages { | ||
stage('Test') { | ||
steps { script { | ||
currentBuild.displayName = "PR-${params.PR_ID}" | ||
|
||
withCredentials([ | ||
string( | ||
credentialsId: 'GIT_HUB_TOKEN', | ||
variable: 'GIT_HUB_TOKEN' | ||
), | ||
usernamePassword( | ||
credentialsId: 'test-rail-api', | ||
usernameVariable: 'TESTRAIL_USER', | ||
passwordVariable: 'TESTRAIL_PASS' | ||
), | ||
usernamePassword( | ||
credentialsId: 'sauce-labs-api', | ||
usernameVariable: 'SAUCE_USERNAME', | ||
passwordVariable: 'SAUCE_ACCESS_KEY' | ||
), | ||
]) { | ||
dir('test/appium/tests') { | ||
sh """ | ||
python3 -m pytest -n24 \ | ||
--rerun_count=2 \ | ||
--testrail_report=True \ | ||
-m "${params.TEST_MARKERS}" \ | ||
--network=${params.NETWORK} \ | ||
--apk=${params.APK_NAME} \ | ||
--build=PR-${params.PR_ID} \ | ||
--pr_number=${params.PR_ID} | ||
""" | ||
} | ||
} | ||
} } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters