• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins ver. 2.46.2

      Pipeline 2.5
      Pipeline Graph Analysis Plugin 1.3
      Pipeline: Groovy 2.32

      Create simple pipeline:

      // Add fancy build parameter.
      properties([
        parameters([
          string( 
            defaultValue: "asd",
            description: 'Some description',
            name: 'foo'
          ),
        ])
      ])
      
      print foo
      if (foo == "true") {
         print "true"
      }
      else {
         print "false"
      }
      

      call pipeline/job with foo=true

      Result:

      [Pipeline] echo
      asd
       [Pipeline] echo
      false
       [Pipeline] End of Pipeline
      Finished: SUCCESS

      parametrized build passed variables is not being propagated to the pipeline.

      I might be doing something wrong but this works on simple job. 

          [JENKINS-44509] jenkins pipelines Environment not working

          Mangirdas Judeikis created issue -
          Mangirdas Judeikis made changes -
          Description Original: Create simple pipeline:
          {code:java}
          // Add fancy build parameter.
          properties([
            parameters([
              string(
                defaultValue: "asd",
                description: 'Some description',
                name: 'foo'
              ),
            ])
          ])

          print foo
          if (foo == "true") {
             print "true"
          }
          else {
             print "false"
          }
          {code}
          call pipeline/job with foo=true

          Result:
          [Pipeline] echo
          asd
          [Pipeline] echo
          false
          [Pipeline] End of Pipeline
          Finished: SUCCESS
          parametrized build passed variables is not being propagated to the pipeline.

          I might be doing something wrong but this works on simple job. 
          New: Create simple pipeline:
          {code:java}
          // Add fancy build parameter.
          properties([
            parameters([
              string(
                defaultValue: "asd",
                description: 'Some description',
                name: 'foo'
              ),
            ])
          ])

          print foo
          if (foo == "true") {
             print "true"
          }
          else {
             print "false"
          }
          {code}
          call pipeline/job with foo=true

          Result:
          {code:java}
          [Pipeline] echo
          asd
           [Pipeline] echo
          false
           [Pipeline] End of Pipeline
          Finished: SUCCESS{code}

          parametrized build passed variables is not being propagated to the pipeline.

          I might be doing something wrong but this works on simple job. 

          Its Openshift Related. If I create Pipeline from Openshift, it fails, if I create native - it works. 

          Mangirdas Judeikis added a comment - Its Openshift Related. If I create Pipeline from Openshift, it fails, if I create native - it works. 

          Moving to Openshift Github issue as looks like issue with Openshift Pipeline implementation. 

          https://github.com/openshift/origin/issues/14369 

          Mangirdas Judeikis added a comment - Moving to Openshift Github issue as looks like issue with Openshift Pipeline implementation.  https://github.com/openshift/origin/issues/1 4369 
          Andrew Bayer made changes -
          Component/s New: openshift-pipeline-plugin [ 21023 ]
          Component/s Original: pipeline [ 21692 ]

            Unassigned Unassigned
            mangirdas Mangirdas Judeikis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: