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

CLI Build command can determine if there are SCM changes



    • Type: New Feature
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: cli
    • Labels:
    • Similar Issues:


      I have a workflow sitting outside of Jenkins used to manage 26 jobs that run in some dependency order.
      I use the -s build option through the CLI which works quite well, but it rebuilds all 26 modules even if some of them don't require it since last official build.

      The downstream-ext project has determined a way to kick off a downstream job only if it detects SCM projects. This works great, however if I use the "-s build" option
      in the CLI it would return when I'm done with job that has the downstream-ext post build task instead of the real job I'm interested in.

      What would be outstanding is if the logic that is in the downstream-ext plugin to only build if there are scm changes could be either an option to the cli build command or a different command altogether. The -s would be critical with this, otherwise what it really would only be is forcing a SCM poll and not knowing the end result.

      Without this option, I'm forced to deal with state and scm diffs outside of Jenkins. While doable, it would be great if the system handled this.



          vanharen Jeremy Van Haren created issue -
          vanharen Jeremy Van Haren made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          vanharen Jeremy Van Haren made changes -
          Attachment 9968.patch [ 20548 ]
          vanharen Jeremy Van Haren made changes -
          Assignee Jeremy Van Haren [ vanharen ]
          vanharen Jeremy Van Haren made changes -
          Assignee Jeremy Van Haren [ vanharen ]
          vanharen Jeremy Van Haren made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          scm_issue_link SCM/JIRA link daemon made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 140156 ] JNJira + In-Review [ 188876 ]


            Unassigned Unassigned
            vanharen Jeremy Van Haren
            0 Vote for this issue
            0 Start watching this issue