forked from cloud-bulldozer/scale-ci-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request cloud-bulldozer#64 from chaitanyaenr/run_tests_fro…
…m_jh Use kubeconfig instead of oc login
- Loading branch information
Showing
3 changed files
with
32 additions
and
30 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
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 |
---|---|---|
|
@@ -21,10 +21,9 @@ stage ('uperf') { | |
sh "wget ${UPERF_PROPERTIES_FILE} -O ${property_file_name}" | ||
sh "cat ${property_file_name}" | ||
def uperf_properties = readProperties file: property_file_name | ||
def skip_tls = uperf_properties['SKIP_TLS_VERIFICATION'] | ||
def cluster_user = uperf_properties['CLUSTER_USER'] | ||
def cluster_password = uperf_properties['CLUSTER_PASSWORD'] | ||
def cluster_api_url = uperf_properties['CLUSTER_API_URL'] | ||
def orchestration_user = uperf_properties['ORCHESTRATION_USER'] | ||
def orchestration_host = uperf_properties['ORCHESTRATION_HOST'] | ||
def sshkey_token = uperf_properties['SSHKEY_TOKEN'] | ||
def es_server = uperf_properties['ES_SERVER'] | ||
def es_port = uperf_properties['ES_PORT'] | ||
def metadata_collection = uperf_properties['METADATA_COLLECTION'] | ||
|
@@ -33,10 +32,9 @@ stage ('uperf') { | |
try { | ||
uperf_build = build job: 'RIPSAW-UPERF', | ||
parameters: [ [$class: 'LabelParameterValue', name: 'node', label: node_label ], | ||
[$class: 'BooleanParameterValue', name: 'SKIP_TLS_VERIFICATION', value: Boolean.valueOf(skip_tls) ], | ||
[$class: 'StringParameterValue', name: 'CLUSTER_USER', value: cluster_user ], | ||
[$class: 'StringParameterValue', name: 'CLUSTER_PASSWORD', value: cluster_password ], | ||
[$class: 'StringParameterValue', name: 'CLUSTER_API_URL', value: cluster_api_url ], | ||
[$class: 'StringParameterValue', name: 'ORCHESTRATION_USER', value: orchestration_user ], | ||
[$class: 'StringParameterValue', name: 'ORCHESTRATION_HOST', value: orchestration_host ], | ||
[$class: 'hudson.model.PasswordParameterValue', name: 'SSHKEY_TOKEN', value: sshkey_token ], | ||
[$class: 'StringParameterValue', name: 'ES_SERVER', value: es_server ], | ||
[$class: 'StringParameterValue', name: 'ES_PORT', value: es_port ], | ||
[$class: 'BooleanParameterValue', name: 'METADATA_COLLECTION', value: Boolean.valueOf(metadata_collection) ], | ||
|
@@ -45,7 +43,7 @@ stage ('uperf') { | |
echo "UPERF Job failed with the following error: " | ||
echo "${e.getMessage()}" | ||
mail( | ||
to: '[email protected]', '[email protected]', | ||
to: '[email protected], [email protected]', | ||
subject: 'Uperf job failed', | ||
body: """\ | ||
Encoutered an error while running the uperf job: ${e.getMessage()}\n\n | ||
|
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