Bug 1481010 - Jenkins server image, declarative pipeline fails due to missing plugin
Summary: Jenkins server image, declarative pipeline fails due to missing plugin
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: ImageStreams
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 3.7.0
Assignee: Corey Daley
QA Contact: Dongbo Yan
Depends On:
TreeView+ depends on / blocked
Reported: 2017-08-13 13:13 UTC by Noel OConnor
Modified: 2017-11-28 22:07 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Jenkins now installs all plugins via one rpm, and the missing plugin is now included.
Clone Of:
Last Closed: 2017-11-28 22:07:08 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:3188 0 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Container Platform 3.7 security, bug, and enhancement update 2017-11-29 02:34:54 UTC

Description Noel OConnor 2017-08-13 13:13:38 UTC
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 15:47:58 UTC
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-15 03:21:32 UTC
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 22:07:08 UTC
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.