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

declarative pipeline upstream trigger syntax not compiling anymore

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Using an upstream trigger in a pipeline causes a compilation error

      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
      WorkflowScript: 4: Invalid parameter "upstreamProjects", did you mean "upstreamFilterStrategy"? @ line 4, column 18.
                 upstream(upstreamProjects: "my_test_1")
                          ^
      

      and you get an additional error line if you specify the threshold attribute.

      Example pipelines for reproducing:

      my_test_1

      pipeline {
          agent any
          stages {
              stage("foo") {
                  steps {
                      echo "hi"
                  }
              }
          }
      }
      

      my_test_2

      pipeline {
          agent any
          triggers {
              upstream(upstreamProjects: "my_test_1")
          }
          stages {
              stage("bar") {
                  steps {
                      echo "hello"
                  }
              }
          }
      }
      

      Advice for further debugging or working around this issues is highly appreciated. Currently all our upstream-trigger-dependent projects are broken, i.e., they're not only not triggered, but the entire pipeline cannot run.

        Attachments

          Issue Links

            Activity

            tumbl3w33d Sir Tumbleweed created issue -
            tumbl3w33d Sir Tumbleweed made changes -
            Field Original Value New Value
            Description Using an upstream trigger in a pipeline causes pipeline a compilation error

            {noformat}
            org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
            WorkflowScript: 4: Invalid parameter "upstreamProjects", did you mean "upstreamFilterStrategy"? @ line 4, column 18.
                       upstream(upstreamProjects: "my_test_1")
                                ^
            {noformat}
            and you get an additional error line if you specify the threshold attribute.

            Example pipelines for reproducing:
            {noformat}
            pipeline {
                agent any
                stages {
                    stage("foo") {
                        steps {
                            echo "hi"
                        }
                    }
                }
            }
            {noformat}
            {noformat}
            pipeline {
                agent any
                triggers {
                    upstream(upstreamProjects: "my_test_1")
                }
                stages {
                    stage("bar") {
                        steps {
                            echo "hello"
                        }
                    }
                }
            }
            {noformat}

            Advice for further debugging or working around this issues is highly appreciated. Currently all our upstream-trigger-dependent projects are broken, i.e., they're not only not triggered, but the entire pipeline cannot run.
            Using an upstream trigger in a pipeline causes pipeline a compilation error

            {noformat}
            org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
            WorkflowScript: 4: Invalid parameter "upstreamProjects", did you mean "upstreamFilterStrategy"? @ line 4, column 18.
                       upstream(upstreamProjects: "my_test_1")
                                ^
            {noformat}
            and you get an additional error line if you specify the threshold attribute.

            Example pipelines for reproducing:

            *my_test_1*
            {noformat}
            pipeline {
                agent any
                stages {
                    stage("foo") {
                        steps {
                            echo "hi"
                        }
                    }
                }
            }
            {noformat}
            *my_test_2*
            {noformat}
            pipeline {
                agent any
                triggers {
                    upstream(upstreamProjects: "my_test_1")
                }
                stages {
                    stage("bar") {
                        steps {
                            echo "hello"
                        }
                    }
                }
            }
            {noformat}

            Advice for further debugging or working around this issues is highly appreciated. Currently all our upstream-trigger-dependent projects are broken, i.e., they're not only not triggered, but the entire pipeline cannot run.
            tumbl3w33d Sir Tumbleweed made changes -
            Description Using an upstream trigger in a pipeline causes pipeline a compilation error

            {noformat}
            org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
            WorkflowScript: 4: Invalid parameter "upstreamProjects", did you mean "upstreamFilterStrategy"? @ line 4, column 18.
                       upstream(upstreamProjects: "my_test_1")
                                ^
            {noformat}
            and you get an additional error line if you specify the threshold attribute.

            Example pipelines for reproducing:

            *my_test_1*
            {noformat}
            pipeline {
                agent any
                stages {
                    stage("foo") {
                        steps {
                            echo "hi"
                        }
                    }
                }
            }
            {noformat}
            *my_test_2*
            {noformat}
            pipeline {
                agent any
                triggers {
                    upstream(upstreamProjects: "my_test_1")
                }
                stages {
                    stage("bar") {
                        steps {
                            echo "hello"
                        }
                    }
                }
            }
            {noformat}

            Advice for further debugging or working around this issues is highly appreciated. Currently all our upstream-trigger-dependent projects are broken, i.e., they're not only not triggered, but the entire pipeline cannot run.
            Using an upstream trigger in a pipeline causes a compilation error
            {noformat}
            org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
            WorkflowScript: 4: Invalid parameter "upstreamProjects", did you mean "upstreamFilterStrategy"? @ line 4, column 18.
                       upstream(upstreamProjects: "my_test_1")
                                ^
            {noformat}
            and you get an additional error line if you specify the threshold attribute.

            Example pipelines for reproducing:

            *my_test_1*
            {noformat}
            pipeline {
                agent any
                stages {
                    stage("foo") {
                        steps {
                            echo "hi"
                        }
                    }
                }
            }
            {noformat}
            *my_test_2*
            {noformat}
            pipeline {
                agent any
                triggers {
                    upstream(upstreamProjects: "my_test_1")
                }
                stages {
                    stage("bar") {
                        steps {
                            echo "hello"
                        }
                    }
                }
            }
            {noformat}
            Advice for further debugging or working around this issues is highly appreciated. Currently all our upstream-trigger-dependent projects are broken, i.e., they're not only not triggered, but the entire pipeline cannot run.
            abayer Andrew Bayer made changes -
            Component/s pipeline-model-definition-plugin [ 21706 ]
            Component/s workflow-cps-plugin [ 21713 ]
            abayer Andrew Bayer made changes -
            Assignee Andrew Bayer [ abayer ]
            abayer Andrew Bayer made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            abayer Andrew Bayer made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            abayer Andrew Bayer made changes -
            Remote Link This issue links to "PR #212 (Web Link)" [ 17979 ]
            abayer Andrew Bayer made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            ikedam ikedam made changes -
            Link This issue is related to JENKINS-47780 [ JENKINS-47780 ]
            abayer Andrew Bayer made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            abayer Andrew Bayer made changes -
            Remote Link This issue links to "PR #215 (Web Link)" [ 17995 ]
            abayer Andrew Bayer made changes -
            Status Reopened [ 4 ] In Progress [ 3 ]
            abayer Andrew Bayer made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            abayer Andrew Bayer made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                tumbl3w33d Sir Tumbleweed
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: