From 7bae720b81c6088a6b3067a0ed221531b514069e Mon Sep 17 00:00:00 2001 From: Michal Kovarik Date: Fri, 14 Feb 2020 07:17:57 +0100 Subject: [PATCH] C3I: Fix permissions on new c3i project. Allow service account used by pipeline-as-a-service to manage resources in project created via c3i-as-a-service. --- .../integration/koji/pipelines/templates/mbs-build.Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openshift/integration/koji/pipelines/templates/mbs-build.Jenkinsfile b/openshift/integration/koji/pipelines/templates/mbs-build.Jenkinsfile index c6ea1ef1..81b00136 100644 --- a/openshift/integration/koji/pipelines/templates/mbs-build.Jenkinsfile +++ b/openshift/integration/koji/pipelines/templates/mbs-build.Jenkinsfile @@ -137,7 +137,7 @@ pipeline { openshift.withProject(params.C3IAAS_REQUEST_PROJECT_BUILD_CONFIG_NAMESPACE) { c3i.buildAndWait(script: this, objs: "bc/${params.C3IAAS_REQUEST_PROJECT_BUILD_CONFIG_NAME}", '-e', "PROJECT_NAME=${env.PIPELINE_ID}", - '-e', "ADMIN_GROUPS=system:serviceaccounts:${TRIGGER_NAMESPACE}", + '-e', "ADMIN_GROUPS=system:serviceaccounts:${TRIGGER_NAMESPACE},system:serviceaccounts:${PIPELINE_AS_A_SERVICE_BUILD_NAMESPACE}", '-e', "LIFETIME_IN_MINUTES=${params.C3IAAS_LIFETIME}" ) }