Build triggered via "Build other projects (manual step)" has no connection to upstream job

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Setup:

      Simple Build Pipeline "Build A -> Build B"

      Build A:
      Build: Shell execution 'echo "Hello"'
      Post Build Action:
      Build other projects (manual step): "Build B"

      Build B:
      Build: Shell execution 'echo "World"'

      Problem / Steps to reproduce

      1. Pressing "Run" in Build Pipeline View triggers "Build A"
      2. Build A goes green >
      3. Trigger "Build B" in Build Pipeline View
      4. Build B runs and and finishes with succes
      5. Build B does not get green in the Pipeline
      6. Build B has no connection to the upstream job

      Additional information

      • The problem did not occur in Jenkins versions 1.642.2, 1.642.3 and also not in 1.652
      • In the working versions we can see the following env variables:
        BUILD_CAUSE	MANUALTRIGGER,UPSTREAMTRIGGER
        BUILD_CAUSE_MANUALTRIGGER	true
        BUILD_CAUSE_UPSTREAMTRIGGER	true
        
      • In the new version the env variables only state the following:
        BUILD_CAUSE	MANUALTRIGGER
        BUILD_CAUSE_MANUALTRIGGER	true
        
      • When Build B tries to copy an artifact from upstream build, it fails
      • The information "Started by upstream project "Build A" build number x" is missing in the console output of Build B

            Assignee:
            Dan Alvizu
            Reporter:
            Angelo Veltens
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: