Bug 1481010 - Jenkins server image, declarative pipeline fails due to missing plugin
Jenkins server image, declarative pipeline fails due to missing plugin
Product: OpenShift Container Platform
Classification: Red Hat
Component: Image (Show other bugs)
Unspecified Unspecified
unspecified Severity medium
: ---
: 3.7.0
Assigned To: Corey Daley
Dongbo Yan
Depends On:
  Show dependency treegraph
Reported: 2017-08-13 09:13 EDT by Noel OConnor
Modified: 2017-11-28 17:07 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Jenkins now installs all plugins via one rpm, and the missing plugin is now included.
Story Points: ---
Clone Of:
Last Closed: 2017-11-28 17:07:08 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
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 RHSA-2017:3188 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Container Platform 3.7 security, bug, and enhancement update 2017-11-28 21:34:54 EST

  None (edit)
Description Noel OConnor 2017-08-13 09:13:38 EDT
Description of problem:
I've just installed OCP 3.6 and I'm trying to run a very basic declarative jenkins pipleline. I'm hitting this issue [0]  due to a missing plugin "Pipeline: Model Definition". Once added the pipeline works as expected.

[0] https://issues.jenkins-ci.org/browse/JENKINS-42620

Version-Release number of selected component (if applicable):

I'm using the following jenkins image registry.access.redhat.com/openshift3/jenkins-2-rhel7@sha256:4647a54e7a4bba9f1ca3db364ae235b5e75a46e7d81f77152e0eef88de7ba440

How reproducible:

Steps to Reproduce:

Actual results:

Expected results:

Additional info:
The pipeline is as follows:

pipeline {
    agent any

    post {
      failure {
        updateGitlabCommitStatus name: 'build', state: 'failed'
      success {
        acceptGitLabMR mergeCommitMessage: 'Accepted by Jenkins CI'


    stage('setup') {
        sh 'env'
        println 'Before git'
        git url: env.gitlabSourceRepoHttpUrl

        println "${env.gitlabSourceNamespace}/${env.gitlabSourceBranch}"
        sh 'git branch -vv'
        println "Looking to merge ${env.gitlabSourceBranch} from ${env.gitlabSourceNamespace} into ${env.gitlabTargetBranch} from ${env.gitlabTargetNamespace}"
Comment 1 Corey Daley 2017-08-24 11:47:58 EDT
This pull request to the jenkins repo condenses all of the jenkins plugins that are required into one rpm that gets installed, including pipeline-model-definition.hpi, which should fix the issue described here.
Comment 2 Dongbo Yan 2017-09-14 23:21:32 EDT
Test with
brew-pulp.../openshift3/jenkins-2-rhel7                b2bc9541f0f7
pipeline-model-definition (1.1.4) plugin is installed.

Could trigger pipeline job without error: 'a missing plugin "Pipeline: Model Definition"'

but job fails to "No such DSL method 'updateGitlabCommitStatus' found among steps"

I don't think it's related to this bug, so move to verified. Please change status back if I'm wrong
Comment 5 errata-xmlrpc 2017-11-28 17:07:08 EST
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.


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