-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
18 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
package analytics | ||
import static org.edx.jenkins.dsl.AnalyticsConstants.common_publishers | ||
import static org.edx.jenkins.dsl.AnalyticsConstants.secure_scm | ||
import static org.edx.jenkins.dsl.AnalyticsConstants.secure_scm_parameters | ||
import static org.edx.jenkins.dsl.AnalyticsConstants.opsgenie_heartbeat_publisher | ||
|
||
class AnalyticsExporter { | ||
|
@@ -19,7 +17,6 @@ class AnalyticsExporter { | |
stringParam('TASKS', '', 'Space separated list of tasks to process. Leave this blank to use the task list specified in the config file. Specify here only if you are running tests of a specific task.') | ||
stringParam('PYTHON_VENV_VERSION', 'python3.7', 'Python virtual environment version to used.') | ||
} | ||
parameters secure_scm_parameters(allVars) | ||
|
||
environmentVariables { | ||
env('REMOTE_CONFIG_PROD_EDX_ROLE_ARN', allVars.get('REMOTE_CONFIG_PROD_EDX_ROLE_ARN')) | ||
|
@@ -32,7 +29,7 @@ class AnalyticsExporter { | |
env('REMOTE_CONFIG_DECRYPTION_KEYS_VAULT_KV_VERSION', allVars.get('REMOTE_CONFIG_DECRYPTION_KEYS_VAULT_KV_VERSION')) | ||
} | ||
|
||
multiscm secure_scm(allVars) << { | ||
multiscm config_scm(allVars) << { | ||
git { | ||
remote { | ||
url('[email protected]:openedx/edx-platform.git') | ||
|
@@ -89,7 +86,6 @@ class AnalyticsExporter { | |
stringParam('EXTRA_OPTIONS') | ||
stringParam('PYTHON_VENV_VERSION', 'python3.7', 'Python version to use for creating virtualenv.') | ||
} | ||
parameters secure_scm_parameters(allVars) | ||
|
||
environmentVariables { | ||
env('REMOTE_CONFIG_PROD_EDX_ROLE_ARN', allVars.get('REMOTE_CONFIG_PROD_EDX_ROLE_ARN')) | ||
|
@@ -113,7 +109,7 @@ class AnalyticsExporter { | |
|
||
concurrentBuild() | ||
|
||
multiscm secure_scm(allVars) | ||
multiscm config_scm(allVars) | ||
|
||
wrappers { | ||
timestamps() | ||
|
@@ -154,14 +150,13 @@ class AnalyticsExporter { | |
stringParam('DATA_CZAR_KEYS_BRANCH', 'master', 'Branch to use for the data-czar-keys repository.') | ||
stringParam('PRIORITY_ORGS', allVars.get('PRIORITY_ORGS'), 'Space separated list of organizations to process first.') | ||
} | ||
parameters secure_scm_parameters(allVars) | ||
environmentVariables { | ||
env('OPSGENIE_HEARTBEAT_NAME', allVars.get('OPSGENIE_HEARTBEAT_NAME')) | ||
env('OPSGENIE_HEARTBEAT_DURATION_NUM', allVars.get('OPSGENIE_HEARTBEAT_DURATION_NUM')) | ||
env('OPSGENIE_HEARTBEAT_DURATION_UNIT', allVars.get('OPSGENIE_HEARTBEAT_DURATION_UNIT')) | ||
} | ||
|
||
multiscm secure_scm(allVars) << { | ||
multiscm config_scm(allVars) << { | ||
git { | ||
remote { | ||
url('[email protected]:openedx/edx-platform.git') | ||
|
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