Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1621291 - Jenkins client plugin openshiftImageStream and openshiftVerifyService
Jenkins client plugin openshiftImageStream and openshiftVerifyService
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Build (Show other bugs)
3.7.1
Unspecified Unspecified
low Severity low
: ---
: 3.11.0
Assigned To: Gabe Montero
XiuJuan Wang
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-08-23 10:50 EDT by Robert Bost
Modified: 2018-10-11 03:25 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-10-11 03:25:25 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:2652 None None None 2018-10-11 03:25 EDT

  None (edit)
Description Robert Bost 2018-08-23 10:50:53 EDT
Description of problem:

The openshiftImageStream and openshiftVerifyService may be missing from the new jenkins-client-plugin or implementing the same behavior has changed. Can documentation be added to the jenkins-client-plugin README to specify how to implement those functions?

Additional Info:
I'm looking for something similar to this section of jekins-client-plugin README:

https://github.com/openshift/jenkins-client-plugin#looking-to-verify-a-deployment-we-can-still-do-that

Just for the openshiftImageStream and openshiftVerifyService.
Comment 1 Gabe Montero 2018-08-30 12:27:34 EDT
I have an `openshiftVerifyService` equivalent working and will update the README shortly.

We are not implementing the ImageStream SCM equivalent in the client plugin at this time.

I will update the README to note that as well.

Ben - I think the imagestream SCM piece is in line with our prior conversations, but certainly chime in as you deem appropriate.
Comment 2 Ben Parees 2018-08-30 12:36:42 EDT
> I think the imagestream SCM piece

not sure what the "imagestream SCM piece" would be in this context?
Comment 3 Gabe Montero 2018-08-30 13:09:09 EDT
Ben reminded me:  with the advent of OpenShift Pipeline Build Strategy, incorporating your pipeline into such a BuildConfig along with the use of an Image Change Trigger is the better choice for triggering pipeline jobs from changes to ImageStreams in OpenShift.

The reason behind why we don't have an imagestream SCM in the new plugin.

Will add some verbiage around that in the README update.
Comment 5 XiuJuan Wang 2018-09-06 23:28:10 EDT
Create a service named frontend.
Create a new pipeline item in jenkins console
Configure the pipeline job with code of equivalent of openshiftVerifyService

openshift.withCluster() {
    openshift.withProject() {
        def serviceSelector = openshift.selector("svc", "frontend")
        def clusterIP = serviceSelector.object().spec.clusterIP
        def port = serviceSelector.object().spec.ports[0].port
        echo "cluster ip ${clusterIP} port ${port}"
        env.SERVICE_URL = "http://" + clusterIP + ":" + port
        // update the parameters to curl to deal with 
        // authentication to your service, or manage retry 
        // or timeouts, as needed
        sh 'curl -s ${SERVICE_URL}'
    }
}

The job build succeed with svc page returned.

openshift v3.11.0-0.28.0
kubernetes v1.11.0+d4cacc0
jenkins-2-rhel7:v3.11.0-0.28.0
Comment 7 errata-xmlrpc 2018-10-11 03:25:25 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:2652

Note You need to log in before you can comment on or make changes to this bug.