Description of problem: Cannot generate whole pipeline script for dsl step "Tag OpenShift Image" using pipeline syntax, lose some mandatory parameters Version-Release number of selected component (if applicable): brew-pulp.../openshift3/jenkins-2-rhel7 9697e3752b3f brew-pulp.../openshift3/jenkins-1-rhel7 5730acae8c1c openshift-login 0.9 openshift-pipeline 1.0.34 openshift-sync 0.0.17 openshift v3.4.0.26+f7e109e kubernetes v1.4.0+776c994 etcd 3.1.0-rc.0 How reproducible: Always Steps to Reproduce: 1.Create a jenkins server $ oc new-app https://raw.githubusercontent.com/openshift/origin/master/examples/jenkins/jenkins-ephemeral-template.json 2.Login jenkins webconsole, create a pipeline job, select the new pipeline job, click "Pipeline Syntax", then switch to pipeline syntax page 3.Pull down "Sample Step" to select "openshiftTag: Tag OpenShift Image", then generate pipeline script, check the output Actual results: pipeline script lose some mandatory parameters, openshiftTag alias: 'false', apiURL: '', authToken: '', destinationAuthToken: '', destinationNamespace: '', namespace: '', verbose: 'false' Expected results: openshiftTag alias: 'false', apiURL: '', authToken: '', destStream: '', destTag: '', destinationAuthToken: '', destinationNamespace: '', namespace: '', srcStream: '', srcTag: '', verbose: 'false' Additional info:
Iteresting ... the pipeline syntax page might not be honoring @DataBoundConstructor ... this is not what I remember but it has been a while. A broader examination might be in order, perhaps some (re)research into the Jenkins pipeline plugin stuff. Justin / Cesar / Ryan - FYI.
Well now I think this is a java annotation "thing" At first this definitely seemed like a jenkins pipeline plugin "shortcoming" Steps where the DataBoundConstructor has a single parameter, the parameter name is generated by "Pipeline Syntax". I'm seeing the correct list for - openshiftBuild - openshiftCreateResource - openshiftDeleteResourceByJsonYaml - openshiftDeploy - openshiftVerifyDeployment - openshiftExec Where as image tagging for example had the issue. But then, openshiftScale worked, and it has two ... but its annotation is on the same line as the ctor. So either it is the placement of the annotation, or it is a "greater than 2" sort of thing. About to experiement ... will update shortly.
Fix checks out ... starting the update plugin/image process.
Fix checks out ... merged https://github.com/openshift/jenkins-plugin/commit/2ebc13570dd964dba4e0867390c6f74c8fa0fdf2
The jenkins rhel image on brew-pulp has v1.0.35 of the openshift pipeline plugin, which has Justin's fix.
Test with brew-pulp.../openshift3/jenkins-1-rhel7 latest 9edb7f9e5157 brew-pulp.../openshift3/jenkins-2-rhel7 latest b5b09fbedfc0 openshift-login 0.9 openshift-pipeline 1.0.36 openshift-sync 0.0.17 openshift v3.4.0.28+dfe3a66 kubernetes v1.4.0+776c994 etcd 3.1.0-rc.0 Actual result: openshiftTag alias: 'false', apiURL: '', authToken: '', destStream: '', destTag: '', destinationAuthToken: '', destinationNamespace: '', namespace: '', srcStream: '', srcTag: '', verbose: 'false'
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-2017:0066