Adding the edit cluster role seems to work.

oadm policy add-cluster-role-to-user edit
system:serviceaccount:jenkins:jenkins

But is feels I'm giving it too much access. I tried with role
system:build-controller but that wasn't enough.

On 28 September 2016 at 14:00, Lionel Orellana <lione...@gmail.com> wrote:

> Thanks. Invoking oc will do.
>
> I guess I have to oc login everytime?
>
> Somehow related question: can I have one service account with access to
> start builds across all projects? I created a jenkins service account for
> this purpose but I'm not sure how to give it access to all projects instead
> of one by one.
>
>
>
>
>
> On 27 September 2016 at 22:48, Clayton Coleman <ccole...@redhat.com>
> wrote:
>
>> There is an API for launching a binary build from a build config - you
>> can do it from a curl call if necessary (run with --loglevel=8 to see an
>> example of that call).  You must send as the contents of the POST call the
>> source to build as a tar, zip, or tar.gz
>>
>> On Sep 27, 2016, at 6:35 AM, Ben Parees <bpar...@redhat.com> wrote:
>>
>>
>>
>> On Sep 27, 2016 2:10 AM, "Lionel Orellana" <lione...@gmail.com> wrote:
>> >
>> > Hi
>> >
>> > Is it possible to trigger a binary build in Jenkins using
>> the openshiftBuild step?
>> >
>> > I'm basically trying to run something like
>> >
>> > oc start-build <bc> --from-dir=<dir>
>> >
>> > but there's no option to pass from-dir in the openshiftBuild step. Are
>> there plans to support this?
>>
>> It's not possible today, but yes it is on our list. In the meantime you
>> can shell out and invoke oc directly to accomplish the same thing.
>>
>> >
>> > Thanks
>> >
>> >
>> > Lionel.
>> >
>> > _______________________________________________
>> > users mailing list
>> > users@lists.openshift.redhat.com
>> > http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>> >
>>
>> _______________________________________________
>> users mailing list
>> users@lists.openshift.redhat.com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>
>>
>
_______________________________________________
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to