Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-51044

Using non-pipeline directives in pipeline job definitions should result in warning or error

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: job-dsl-plugin
    • Labels:
      None
    • Environment:
      EnvInject 2.1.5
      Job DSL 1.69
      Jenkins 2.107.2
    • Similar Issues:

      Description

      It seems that certain directives within a pipelineJob are totally ignored if using the definition directive to read in an external groovy script. At a minimum, it seems label and steps are, and possibly wrappers. For a new user (like me!) this can be frustrating. If a directive is invalid or ignored, there should be some message sent to the seed job's console (minimum) or the seed job should have result set to unstable/failed.

        Attachments

          Issue Links

            Activity

            aarondmarasco_vsi Aaron D. Marasco created issue -
            aarondmarasco_vsi Aaron D. Marasco made changes -
            Field Original Value New Value
            Summary Using conflicting pipeline directives should result in error Using non-pipeline directives in pipeline job definitions should result in warning or error
            daspilker Daniel Spilker made changes -
            Link This issue duplicates JENKINS-31832 [ JENKINS-31832 ]
            daspilker Daniel Spilker made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]
            daspilker Daniel Spilker made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

              People

              • Assignee:
                daspilker Daniel Spilker
                Reporter:
                aarondmarasco_vsi Aaron D. Marasco
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: