-
Notifications
You must be signed in to change notification settings - Fork 21
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
Adding SSHKEY Repository as a parameter to scale-ci-baseline #73
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 |
---|---|---|
|
@@ -14,12 +14,15 @@ | |
fi | ||
# Re-enable logging | ||
set -x | ||
git clone https://${SSHKEY_TOKEN}@github.com/redhat-performance/perf-dept.git | ||
export PUBLIC_KEY=${WORKSPACE}/perf-dept/ssh_keys/id_rsa_perf.pub | ||
export PRIVATE_KEY=${WORKSPACE}/perf-dept/ssh_keys/id_rsa_perf | ||
export PBENCH_SSH_PUBLIC_KEY_FILE=${WORKSPACE}/perf-dept/ssh_keys/id_rsa_perf.pub | ||
export PBENCH_SSH_PRIVATE_KEY_FILE=${WORKSPACE}/perf-dept/ssh_keys/id_rsa_perf | ||
chmod 600 ${PRIVATE_KEY} | ||
git clone https://${SSHKEY_TOKEN}@${SSHKEY_REPO} | ||
if [ -f ${WORKSPACE}/${SSHKEY_REPOPATH_PUB} ] && [ -f ${WORKSPACE}/${SSHKEY_REPOPATH_PRIV} ] | ||
then | ||
export PUBLIC_KEY=${WORKSPACE}/${SSHKEY_REPOPATH_PUB} | ||
export PRIVATE_KEY=${WORKSPACE}/${SSHKEY_REPOPATH_PRIV} | ||
export PBENCH_SSH_PUBLIC_KEY_FILE=${WORKSPACE}/${SSHKEY_REPOPATH_PUB} | ||
export PBENCH_SSH_PRIVATE_KEY_FILE=${WORKSPACE}/${SSHKEY_REPOPATH_PRIV} | ||
chmod 600 ${PRIVATE_KEY} | ||
fi | ||
|
||
# Create inventory File: | ||
echo "[orchestration]" > inventory | ||
|
@@ -137,6 +140,19 @@ | |
description: 'Duration to run' | ||
name: BASELINE_WORKLOAD_DURATION | ||
trim: 'false' | ||
- string: | ||
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. This change will work when we are calling the individual job, the following minor changes are needed to get it working with the pipeline: the pipeline/build scripts read the properties file/config with the parameters and call the jobs. so the sample properties file ( https://github.com/openshift-scale/scale-ci-pipeline/blob/master/properties-files/baseline.properties ) and build script needs to be updated with the new parameters ( https://github.com/openshift-scale/scale-ci-pipeline/blob/master/pipeline-scripts/baseline.groovy#L46 ). 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. makes sense @chaitanyaenr . I was looking at updating the individual tests as I'm not wanting to run them all. Would it be okay if I update the yaml, properties and groovy files for each test at a time and raise a pull request? 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. Sounds good. Thanks. 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. @chaitanyaenr - could you please review the most recent changes in this request? |
||
default: "github.com/redhat-performance/perf-dept.git" | ||
description: 'Repository containing ssh keys for Ansible and pbench server' | ||
name: SSHKEY_REPO | ||
- string: | ||
default: "perf-dept/ssh_keys/id_rsa_perf.pub" | ||
description: 'path to public key file in ssh key repository' | ||
name: SSHKEY_REPOPATH_PUB | ||
- string: | ||
default: "perf-dept/ssh_keys/id_rsa_perf" | ||
description: 'path to private key file in ssh key repository' | ||
name: SSHKEY_REPOPATH_PRIV | ||
|
||
project-type: freestyle | ||
properties: | ||
- raw: | ||
|
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 need to update other jobs to do the same as they use the same logic to fetch the ssh keys.
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.
This can be tackled in a separate PR I guess.