Skip to content
This repository was archived by the owner on Aug 29, 2018. It is now read-only.
This repository was archived by the owner on Aug 29, 2018. It is now read-only.

Openshift node not getting added. #21

@imnilesh2

Description

@imnilesh2

I want to use the external jenkins to build my Java application and want to deploy my .war to Openshift's "jbossews-2.0" gear.

I have built this plugin using Maven and have placed the openshift.hpi file in my jenkins.

I have done following steps in my jenkins:

  1. I have added the Openshift cloud information like from Manage Jenkins:
    Openshift Username,password, broker hostname, broker port
  2. Created a build job with following values for openshift variables:
    a. Job/Project name: jbossews-2.0
    b. Application UUID: jbossews-2.0
    c. Buffersize: small
    d. Builder Timeout: 300000
    e. Builder type: (empty)
  3. When I try to build the job, it fails with following enteries in Jenkins system.log:

Checking capacity
Mar 26, 2014 6:31:03 PM INFO hudson.plugins.openshift.OpenShiftCloud hasCapacity
User has consumed 3 of 100 gears.
Mar 26, 2014 6:31:03 PM INFO hudson.plugins.openshift.OpenShiftCloud reloadConfig
Reloading configuration for jbossews-2.0...
Mar 26, 2014 6:31:03 PM WARNING hudson.plugins.openshift.OpenShiftCloud provision
Caught java.net.MalformedURLException: For input string: "null". Will retry 1 more times before canceling build.

Above log entries show that the connection with the broker looks successful.
According to source code of plugin, OpenShiftCloud.java tries to copy config.xml of an Jenkins job where it fails.

So, my questions;

  1. Do we need additional configuration on openshift side like pre-configured jenkins or something like that.
  2. Any more configuration required in my external Jenkins job?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions