-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move acceptance tests at PRs to NUE #1429
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#!/usr/bin/env groovy | ||
|
||
node('pull-request-test') { | ||
node('pull-request-test-nue') { | ||
properties([ | ||
buildDiscarder(logRotator(numToKeepStr: '30')), | ||
parameters([ | ||
string(name: 'platform_localisation', defaultValue: 'PRV', description: 'Decide if it will be run in \'PRV\' or \'NUE\''), | ||
string(name: 'platform_localisation', defaultValue: 'NUE', description: 'Decide if it will be run in \'PRV\' or \'NUE\''), | ||
string(name: 'product_version', defaultValue: 'uyuni', description: 'Select if we are using \'uyuni\' or \'manager43\' project'), | ||
string(name: 'pull_request_number', defaultValue: '', description: 'Required: Uyuni Pull Request Number'), | ||
string(name: 'email_to', defaultValue: '', description: 'Recommended: Receive a report to your e-mail when it finishes with links to the results, artifacts and logs'), | ||
|
@@ -35,6 +35,14 @@ node('pull-request-test') { | |
first_env = 1; | ||
last_env = 10; | ||
email_to = params.email_to; | ||
if (platform_localisation == "NUE") { | ||
domain = "mgr.suse.de" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Personally, and really just a matter of taste, I would have both domains as constants in The reasoning about it, is that those domains might change over the years and we might have multiple pipelines using the Related card about domain changes https://github.com/SUSE/spacewalk/issues/25378 |
||
} else if (platform_localisation == "PRV") { | ||
domain = "mgr.prv.suse.net" | ||
} else { | ||
print("Platform not supporeted"); | ||
sh "exit 1" | ||
} | ||
run_all_scopes = params.run_all_scopes; | ||
pull_request_number = params.pull_request_number.trim(); | ||
additional_repo_url = params.additional_repo_url; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't care too much where this node is located and this is only used to trigger the pipeline. But.. see below:
We should define the node we want to use, as otherwise, this will always goes through the node defined at this point, meaning always NUE.
Something like:
I think, another approach it could be to pass it by param into the run method, and inside it calculate the agent to use.
Make sense for you?