You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JENKINS-9968] CLI Build command can determine if there are SCM changes #15891
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.
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.
Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
changelog.html
core/src/main/java/hudson/cli/BuildCommand.java
core/src/main/java/hudson/cli/CLICommand.java
http://jenkins-ci.org/commit/jenkins/259477a13a6c6cf1223739b88dd72c2a4f4e0392
Log:
[FIXED JENKINS-9968] added an option to do polling before a build.
Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
changelog.html
core/src/main/java/hudson/cli/BuildCommand.java
core/src/main/java/hudson/cli/CLICommand.java
http://jenkins-ci.org/commit/jenkins/259477a13a6c6cf1223739b88dd72c2a4f4e0392
Log:
[FIXED JENKINS-9968] added an option to do polling before a build.
Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
changelog.html
core/src/main/java/hudson/cli/BuildCommand.java
core/src/main/java/hudson/cli/CLICommand.java
http://jenkins-ci.org/commit/jenkins/259477a13a6c6cf1223739b88dd72c2a4f4e0392
Log:
[FIXED JENKINS-9968] added an option to do polling before a build.
Activity
jenkins-infra-bot commentedon Jun 15, 2011
vanharen:
Raw content of original comment:
I've added a patch that I think will do the trick. But I'm very new to this, any advice would be very helpful.
jenkins-infra-bot commentedon Aug 10, 2011
Raw content of original comment:
Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
changelog.html
core/src/main/java/hudson/cli/BuildCommand.java
core/src/main/java/hudson/cli/CLICommand.java
http://jenkins-ci.org/commit/jenkins/259477a13a6c6cf1223739b88dd72c2a4f4e0392
Log:
[FIXED JENKINS-9968] added an option to do polling before a build.
jenkins-infra-bot commentedon Aug 10, 2011
Raw content of original comment:
Integrated in
jenkins_main_trunk #1037
[FIXED JENKINS-9968] added an option to do polling before a build.
Kohsuke Kawaguchi : 259477a13a6c6cf1223739b88dd72c2a4f4e0392
Files :
jenkins-infra-bot commentedon Sep 12, 2011
Raw content of original comment:
Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
changelog.html
core/src/main/java/hudson/cli/BuildCommand.java
core/src/main/java/hudson/cli/CLICommand.java
http://jenkins-ci.org/commit/jenkins/259477a13a6c6cf1223739b88dd72c2a4f4e0392
Log:
[FIXED JENKINS-9968] added an option to do polling before a build.
jenkins-infra-bot commentedon Oct 20, 2011
Raw content of original comment:
Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
changelog.html
core/src/main/java/hudson/cli/BuildCommand.java
core/src/main/java/hudson/cli/CLICommand.java
http://jenkins-ci.org/commit/jenkins/259477a13a6c6cf1223739b88dd72c2a4f4e0392
Log:
[FIXED JENKINS-9968] added an option to do polling before a build.