Unable to perform Jenkins Build on Openshift
Issue
- If a gear running Jenkins is already present when the
AUTH_SALTsetting is changed in /etc/openshift/broker.conf, subsequent Jenkins builds will initially fail with the following:
remote: Executing Jenkins build.
remote:
remote: You can track your build at https://jenkins-namespace.example.com/job/myapp-build
remote:
remote: Waiting for build to schedule...........................
remote: **BUILD FAILED/CANCELLED**
remote: Please see the Jenkins log for more details via rhc-tail-files
remote: !!!!!!!!
remote: Deployment Halted!
remote: If the build failed before the deploy step, your previous
remote: build is still running. Otherwise, your application may be
remote: partially deployed or inaccessible.
remote: Fix the build and try again.
remote: !!!!!!!!
- Checking Jenkins application's logs will reveal the following invalid credential messages:
WARNING: Caught com.openshift.client.InvalidCredentialsOpenShiftException: Your credentials are not authorized to access "https://broker.example.com/broker/rest/user". Will retry 4 more times before canceling build.
com.openshift.client.InvalidCredentialsOpenShiftException: Your credentials are not authorized to access "https://broker.example.com/broker/rest/user"
...
Environment
- Openshift Enterprise
- 2.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
