| |
@@ -13,6 +13,13 @@
|
| |
# Main branch used for triggering post merge workflow.
|
| |
c3i_git_main_branch: master
|
| |
|
| |
+ # Openshift connection
|
| |
+ c3i_ocp_token: "{{ lookup('file', '/run/secrets/kubernetes.io/serviceaccount/token', errors='ignore') | default(lookup('pipe', 'oc whoami -t'), true) }}"
|
| |
+ c3i_ocp_host: https://paas.psi.redhat.com
|
| |
+ c3i_ocp_verify_ssl: true
|
| |
+ c3i_ocp_namespace: "{{ lookup('file', '/run/secrets/kubernetes.io/serviceaccount/namespace', errors='ignore') | default(lookup('pipe', \"awk '/current-context/ {print $2}' ~/.kube/config | cut -f1 -d'/'\"), true) }}"
|
| |
+
|
| |
+
|
| |
# Path to dockerfile for Jenkins agent
|
| |
c3i_jenkins_agent_buildconfig_contextdir: .
|
| |
c3i_jenkins_agent_buildconfig_dockerfile: openshift/containers/jenkins-slave/Dockerfile
|
| |
@@ -25,7 +32,7 @@
|
| |
# Email address for notification
|
| |
c3i_mail_address:
|
| |
# Path to Jenkinsfile snippet for premerge and postmerge workflow
|
| |
- c3i_build_and_test_snippet:
|
| |
+ c3i_build_and_test_snippet:
|
| |
# Path to Jenkinsfile snippet for integration tests used by promotion workflow
|
| |
c3i_integration_test_snippet:
|
| |
|
| |
@@ -89,12 +96,6 @@
|
| |
c3i_fedmsg_provider: fedmsg
|
| |
c3i_cloud_name: openshift
|
| |
|
| |
- # Openshift connection
|
| |
- c3i_ocp_token: "{{ lookup('file', '/run/secrets/kubernetes.io/serviceaccount/token', errors='ignore') | default(lookup('pipe', 'oc whoami -t'), true) }}"
|
| |
- c3i_ocp_host: https://paas.psi.redhat.com
|
| |
- c3i_ocp_verify_ssl: true
|
| |
- c3i_ocp_namespace: "{{ lookup('file', '/run/secrets/kubernetes.io/serviceaccount/namespace', errors='ignore') | default(lookup('pipe', \"awk '/current-context/ {print $2}' ~/.kube/config | cut -f1 -d'/'\"), true) }}"
|
| |
-
|
| |
# Jenkins for Jenkinsfile validation - has to have read access for anonymous
|
| |
c3i_jenkins_master_validation: jenkins-c3i.cloud.paas.psi.redhat.com
|
| |
|
| |
Use:
K8S_AUTH_API_KEY: {{ c3i_ocp_token }}"
K8S_AUTH_HOST: "{{ c3i_ocp_host }}"
K8S_AUTH_VERIFY_SSL: "{{ c3i_ocp_verify_ssl }}"
Instead of declaring them at every k8s task.