code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
@Override public String toString() { return "HgMaterial{" + "url=" + url + '}'; }
Understands configuration for mercurial version control
toString
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
public void setBranch(String branch) { this.branch = branch; }
Understands configuration for mercurial version control
setBranch
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
public String getBranch() { if (isNotBlank(branch)) { return branch; } return getBranchFromUrl(); }
Understands configuration for mercurial version control
getBranch
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
private String getBranchFromUrl() { String[] componentsOfUrl = StringUtils.split(url.originalArgument(), HgUrlArgument.DOUBLE_HASH); if (componentsOfUrl.length > 1) { return componentsOfUrl[1]; } return HG_DEFAULT_BRANCH; }
Understands configuration for mercurial version control
getBranchFromUrl
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
@Override protected void setGoMaterialVariables(EnvironmentVariableContext environmentVariableContext) { super.setGoMaterialVariables(environmentVariableContext); setVariableWithName(environmentVariableContext, getBranch(), GitMaterial.GO_MATERIAL_BRANCH); }
Understands configuration for mercurial version control
setGoMaterialVariables
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/config/materials/mercurial/HgMaterial.java
Apache-2.0
public String getStageName() { return stageName; }
Understands why a stage cannot be scheduled
getStageName
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/CannotScheduleException.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/CannotScheduleException.java
Apache-2.0
@Override public String getApprovedBy() { return approvedBy; }
Understands what a job needs to know to be scheduled
getApprovedBy
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/DefaultSchedulingContext.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/DefaultSchedulingContext.java
Apache-2.0
@Override public Agents findAgentsMatching(ResourceConfigs resourceConfigs) { Agents found = new Agents(); for (Agent agent : agents) { if (agent.hasAllResources(resourceConfigs.resourceNames()) && !agent.isDisabled()) { found.add(agent); } } r...
Understands what a job needs to know to be scheduled
findAgentsMatching
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/DefaultSchedulingContext.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/DefaultSchedulingContext.java
Apache-2.0
@Override public EnvironmentVariablesConfig getEnvironmentVariablesConfig() { return variables; }
Understands what a job needs to know to be scheduled
getEnvironmentVariablesConfig
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/DefaultSchedulingContext.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/DefaultSchedulingContext.java
Apache-2.0
@Override public SchedulingContext overrideEnvironmentVariables(EnvironmentVariablesConfig environmentVariablesConfig) { DefaultSchedulingContext context = new DefaultSchedulingContext(approvedBy, new Agents(agents), profiles, clusterProfiles); context.variables = variables.overrideWith(environmentV...
Understands what a job needs to know to be scheduled
overrideEnvironmentVariables
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/DefaultSchedulingContext.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/DefaultSchedulingContext.java
Apache-2.0
@Override public SchedulingContext permittedAgent(String permittedAgentUuid) { Agents permitted = new Agents(); for (Agent agent : agents) { if (agent.getUuid().equals(permittedAgentUuid)) { permitted.add(agent); } } DefaultSchedulingContext co...
Understands what a job needs to know to be scheduled
permittedAgent
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/DefaultSchedulingContext.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/DefaultSchedulingContext.java
Apache-2.0
@Override public boolean isRerun() { return rerun; }
Understands what a job needs to know to be scheduled
isRerun
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/DefaultSchedulingContext.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/DefaultSchedulingContext.java
Apache-2.0
@Override public SchedulingContext rerunContext() { DefaultSchedulingContext context = new DefaultSchedulingContext(approvedBy, agents, profiles, clusterProfiles); context.variables = variables.overrideWith(new EnvironmentVariablesConfig()); context.rerun = true; return context; ...
Understands what a job needs to know to be scheduled
rerunContext
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/DefaultSchedulingContext.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/DefaultSchedulingContext.java
Apache-2.0
@Override public ElasticProfile getElasticProfile(String profileId) { return profiles.get(profileId); }
Understands what a job needs to know to be scheduled
getElasticProfile
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/DefaultSchedulingContext.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/DefaultSchedulingContext.java
Apache-2.0
@Override public ClusterProfile getClusterProfile(String clusterProfileId) { return clusterProfiles.get(clusterProfileId); }
Understands what a job needs to know to be scheduled
getClusterProfile
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/DefaultSchedulingContext.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/DefaultSchedulingContext.java
Apache-2.0
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } DefaultSchedulingContext that = (DefaultSchedulingContext) o; if (agents != null ? !agents.equals(that....
Understands what a job needs to know to be scheduled
equals
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/DefaultSchedulingContext.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/DefaultSchedulingContext.java
Apache-2.0
@Override public int hashCode() { int result = approvedBy != null ? approvedBy.hashCode() : 0; result = 31 * result + (agents != null ? agents.hashCode() : 0); result = 31 * result + (variables != null ? variables.hashCode() : 0); return result; }
Understands what a job needs to know to be scheduled
hashCode
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/DefaultSchedulingContext.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/DefaultSchedulingContext.java
Apache-2.0
public Date getScheduledDate() { return scheduledDate; }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
getScheduledDate
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public void setScheduledDate(Date scheduledDate) { this.scheduledDate = scheduledDate; }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
setScheduledDate
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
@Override public JobInstance clone() { try { return (JobInstance) super.clone(); } catch (CloneNotSupportedException e) { return null; } }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
clone
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public void fail() { Date completionDate = timeProvider.currentUtilDate(); completing(JobResult.Failed, completionDate); completed(completionDate); }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
fail
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public String getPipelineName() { return identifier.getPipelineName(); }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
getPipelineName
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public Integer getPipelineCounter() { return identifier.getPipelineCounter(); }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
getPipelineCounter
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public String getStageName() { return identifier.getStageName(); }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
getStageName
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public String getStageCounter() { return identifier.getStageCounter(); }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
getStageCounter
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public void setIdentifier(JobIdentifier identifier) { this.identifier = identifier; }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
setIdentifier
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public JobIdentifier getIdentifier() { return identifier; }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
getIdentifier
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public String getBuildDurationKey(String pipelineName, String stageName) { return String.format("BUILD_DURATION: %s_%s_%s_%s", pipelineName, stageName, getName(), getAgentUuid()); }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
getBuildDurationKey
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public boolean isAssignedToAgent() { return getAgentUuid() != null; }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
isAssignedToAgent
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public void setPlan(JobPlan plan) { this.plan = plan; }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
setPlan
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public JobPlan getPlan() { return plan; }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
getPlan
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } JobInstance instance = (JobInstance) o; if (ignored != instance.ignored) { return false; ...
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
equals
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
@Override public int hashCode() { int result1; result1 = (int) (stageId ^ (stageId >>> 32)); result1 = 31 * result1 + (name != null ? name.hashCode() : 0); result1 = 31 * result1 + (state != null ? state.hashCode() : 0); result1 = 31 * result1 + (result != null ? result.hashC...
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
hashCode
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public String buildLocator() { return identifier.buildLocator(); }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
buildLocator
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public String buildLocatorForDisplay() { return identifier.buildLocatorForDisplay(); }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
buildLocatorForDisplay
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public void setRunOnAllAgents(boolean runOnAllAgents) { this.runOnAllAgents = runOnAllAgents; }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
setRunOnAllAgents
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public boolean isRunOnAllAgents() { return runOnAllAgents; }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
isRunOnAllAgents
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public boolean isRunMultipleInstance() { return runMultipleInstance; }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
isRunMultipleInstance
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public void setRunMultipleInstance(boolean runMultipleInstance) { this.runMultipleInstance = runMultipleInstance; }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
setRunMultipleInstance
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public boolean matches(JobConfigIdentifier identifier) { if (!getPipelineName().equalsIgnoreCase(identifier.getPipelineName())) { return false; } if (!getStageName().equalsIgnoreCase(identifier.getStageName())) { return false; } return jobType().isInstance...
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
matches
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
JobType jobType() { if (runOnAllAgents) { return new RunOnAllAgents(); } else if (runMultipleInstance) { return new RunMultipleInstance(); } else { return new SingleJobInstance(); } }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
jobType
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public boolean isSameStageConfig(JobInstance other) { return this.getIdentifier().isSameStageConfig(other.getIdentifier()); }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
isSameStageConfig
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public boolean isSamePipelineInstance(JobInstance other) { return (getIdentifier().getPipelineLabel().equals(other.getIdentifier().getPipelineLabel())); }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
isSamePipelineInstance
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public String getTitle() { return getIdentifier().buildLocatorForDisplay(); }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
getTitle
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public Date latestTransitionDate() { return stateTransitions.latestTransitionDate(); }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
latestTransitionDate
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public long latestTransitionId() { return stateTransitions.latestTransitionId(); }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
latestTransitionId
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public Long getOriginalJobId() { return originalJobId; }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
getOriginalJobId
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public void setOriginalJobId(Long originalJobId) { this.originalJobId = originalJobId; }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
setOriginalJobId
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
void resetForCopy() { if (!isCopy()) { setOriginalJobId(getId()); } setId(-1); rerun = false; stateTransitions.resetTransitionIds(); }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
resetForCopy
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public boolean isCopy() { return originalJobId != null; }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
isCopy
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public boolean isRerun() { return rerun; }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
isRerun
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public void setRerun(boolean rerun) { this.rerun = rerun; }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
setRerun
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public Date getAssignedDate() { return getStartedDateFor(JobState.Assigned); }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
getAssignedDate
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public Date getCompletedDate() { return getStartedDateFor(JobState.Completed); }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
getCompletedDate
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public boolean isPipelineStillConfigured() { return pipelineStillConfigured; }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
isPipelineStillConfigured
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
public void setPipelineStillConfigured(boolean isConfigured) { pipelineStillConfigured = isConfigured; }
Scheduled date is duplicated in BUILDINSTANCE table to simplify sql statements.
setPipelineStillConfigured
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/JobInstance.java
Apache-2.0
@TestOnly public void setLabel(String label) { this.pipelineLabel.setLabel(label); }
Will not apply template logic; to be used only in testing or by iBatis
setLabel
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
Apache-2.0
public void updateCounter(Integer lastCount) { counter = lastCount + 1; updateLabel(); }
Will not apply template logic; to be used only in testing or by iBatis
updateCounter
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
Apache-2.0
private void updateLabel() { Map<CaseInsensitiveString, String> namedRevisions = this.getMaterialRevisions().getNamedRevisions(); this.pipelineLabel.updateLabel(namedRevisions, counter); }
Will not apply template logic; to be used only in testing or by iBatis
updateLabel
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
Apache-2.0
@Override public boolean isAnyStageActive() { return stages.isAnyStageActive(); }
Will not apply template logic; to be used only in testing or by iBatis
isAnyStageActive
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
Apache-2.0
@Override public String nextStageName(String stageName) { return stages.nextStageName(stageName); }
Will not apply template logic; to be used only in testing or by iBatis
nextStageName
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
Apache-2.0
public Stage findStage(String stageName) { return stages.byName(stageName); }
Will not apply template logic; to be used only in testing or by iBatis
findStage
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
Apache-2.0
public MaterialRevisions getMaterialRevisions() { return buildCause.getMaterialRevisions(); }
Will not apply template logic; to be used only in testing or by iBatis
getMaterialRevisions
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
Apache-2.0
public Date getModifiedDate() { return buildCause.getModifiedDate(); }
Will not apply template logic; to be used only in testing or by iBatis
getModifiedDate
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
Apache-2.0
public PipelineIdentifier getIdentifier() { return new PipelineIdentifier(pipelineName, counter, getLabel()); }
Will not apply template logic; to be used only in testing or by iBatis
getIdentifier
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
Apache-2.0
public double getNaturalOrder() { return naturalOrder; }
Will not apply template logic; to be used only in testing or by iBatis
getNaturalOrder
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
Apache-2.0
public void setNaturalOrder(double naturalOrder) { this.naturalOrder = naturalOrder; }
Will not apply template logic; to be used only in testing or by iBatis
setNaturalOrder
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
Apache-2.0
public EnvironmentVariables scheduleTimeVariables() { return buildCause.getVariables(); }
Will not apply template logic; to be used only in testing or by iBatis
scheduleTimeVariables
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
Apache-2.0
public boolean isBisect() { return naturalOrderIsNotAnInteger(); }
Will not apply template logic; to be used only in testing or by iBatis
isBisect
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
Apache-2.0
private boolean naturalOrderIsNotAnInteger() { return naturalOrder - Double.valueOf(naturalOrder).intValue() > 0; }
Will not apply template logic; to be used only in testing or by iBatis
naturalOrderIsNotAnInteger
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/Pipeline.java
Apache-2.0
@Override public String duration(Function<Duration, String> formatter) { return "In Progress"; }
Understands the time taken for a stage to complete
duration
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/RunDuration.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/RunDuration.java
Apache-2.0
@Override public String duration(Function<Duration, String> formatter) { return formatter.apply(duration); }
Understands the time taken for a stage to complete
duration
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/RunDuration.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/RunDuration.java
Apache-2.0
public long getTotalSeconds() { return duration.getSeconds(); }
Understands the time taken for a stage to complete
getTotalSeconds
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/RunDuration.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/RunDuration.java
Apache-2.0
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof RunDuration that)) { return false; } return !(duration != null ? !duration.equals(that.duration) : that.duration != null); }
Understands the time taken for a stage to complete
equals
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/RunDuration.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/RunDuration.java
Apache-2.0
@Override public int hashCode() { return duration != null ? duration.hashCode() : 0; }
Understands the time taken for a stage to complete
hashCode
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/RunDuration.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/RunDuration.java
Apache-2.0
@Override public boolean isInstanceOf(String jobInstanceName, boolean ignoreCase, String jobConfigName) { return jobTypeConfig.isInstanceOf(jobInstanceName, ignoreCase, jobConfigName); }
Understands how to match job instances associated with run-multiple-instance Jobs
isInstanceOf
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/RunMultipleInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/RunMultipleInstance.java
Apache-2.0
@Override public void createRerunInstances(JobInstance oldJob, JobInstances jobInstances, SchedulingContext context, StageConfig stageConfig, final Clock clock, InstanceFactory instanceFactory) { context = context.rerunContext(); String configName = translateToConfigName(oldJob.getName()); JobConfig jobConfig...
Understands how to match job instances associated with run-multiple-instance Jobs
createRerunInstances
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/RunMultipleInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/RunMultipleInstance.java
Apache-2.0
private String translateToConfigName(String jobName) { Matcher matcher = CONFIG_NAME_PATTERN.matcher(jobName); if (matcher.matches()) { return matcher.group(1); } else { throw new IllegalArgumentException(String.format("Job name '%s' does not match the pattern for 'run multiple instance' job", jobName)); ...
Understands how to match job instances associated with run-multiple-instance Jobs
translateToConfigName
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/RunMultipleInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/RunMultipleInstance.java
Apache-2.0
@Override public void createJobInstances(JobInstances jobs, SchedulingContext context, JobConfig config, String stageName, final JobNameGenerator nameGenerator, final Clock clock, InstanceFactory instanceFactory) { Integer totalInstances = context.isRerun() ? 1 : config.getRunInstanceCountValue(); for (int coun...
Understands how to match job instances associated with run-multiple-instance Jobs
createJobInstances
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/RunMultipleInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/RunMultipleInstance.java
Apache-2.0
private SchedulingContext setEnvironmentVariables(SchedulingContext context, JobConfig config, String jobName, int counter) { EnvironmentVariablesConfig environmentVariablesConfig = new EnvironmentVariablesConfig(); int index = context.isRerun() ? getOldJobIndex(jobName) : counter; environmentVariablesConfig.add(...
Understands how to match job instances associated with run-multiple-instance Jobs
setEnvironmentVariables
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/RunMultipleInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/RunMultipleInstance.java
Apache-2.0
private Integer getOldJobIndex(String jobName) { return Integer.valueOf(jobName.split("-" + RunMultipleInstanceJobTypeConfig.MARKER + "-")[1]); }
Understands how to match job instances associated with run-multiple-instance Jobs
getOldJobIndex
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/RunMultipleInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/RunMultipleInstance.java
Apache-2.0
@Override public String generateName(int counter) { return name; }
Understands how to match job instances associated with run-multiple-instance Jobs
generateName
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/RunMultipleInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/RunMultipleInstance.java
Apache-2.0
@Override public String generateName(final int counter) { return appendMarker(name, counter); }
Understands how to match job instances associated with run-multiple-instance Jobs
generateName
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/RunMultipleInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/RunMultipleInstance.java
Apache-2.0
public static String appendMarker(final String name, int counter) { return String.format("%s-%s-%s", name, RunMultipleInstanceJobTypeConfig.MARKER, counter); }
Understands how to match job instances associated with run-multiple-instance Jobs
appendMarker
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/RunMultipleInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/RunMultipleInstance.java
Apache-2.0
@Override public boolean isInstanceOf(String jobInstanceName, boolean ignoreCase, String jobConfigName) { return jobTypeConfig.isInstanceOf(jobInstanceName, ignoreCase, jobConfigName); }
Understands how to match job instances associated with run-on-all-agents Jobs
isInstanceOf
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/RunOnAllAgents.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/RunOnAllAgents.java
Apache-2.0
@Override public void createRerunInstances(JobInstance oldJob, JobInstances jobInstances, SchedulingContext context, StageConfig stageConfig, final Clock clock, InstanceFactory instanceFactory) { context = context.permittedAgent(oldJob.getAgentUuid()); String configName = translateToConfigName(oldJo...
Understands how to match job instances associated with run-on-all-agents Jobs
createRerunInstances
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/RunOnAllAgents.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/RunOnAllAgents.java
Apache-2.0
private String translateToConfigName(String jobName) { Matcher matcher = CONFIG_NAME_PATTERN.matcher(jobName); if (matcher.matches()) { return matcher.group(1); } else { throw new IllegalArgumentException(String.format("Job name %s does not match the pattern for run on al...
Understands how to match job instances associated with run-on-all-agents Jobs
translateToConfigName
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/RunOnAllAgents.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/RunOnAllAgents.java
Apache-2.0
@Override public void createJobInstances(JobInstances jobs, SchedulingContext context, JobConfig config, String stageName, final JobNameGenerator nameGenerator, final Clock clock, InstanceFactory instanceFactory) { Collection<Agent> agents = context.findAgentsMatching(conf...
Understands how to match job instances associated with run-on-all-agents Jobs
createJobInstances
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/RunOnAllAgents.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/RunOnAllAgents.java
Apache-2.0
@Override public String generateName(int counter) { return name; }
Understands how to match job instances associated with run-on-all-agents Jobs
generateName
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/RunOnAllAgents.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/RunOnAllAgents.java
Apache-2.0
@Override public String generateName(final int counter) { return appendMarker(name, counter); }
Understands how to match job instances associated with run-on-all-agents Jobs
generateName
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/RunOnAllAgents.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/RunOnAllAgents.java
Apache-2.0
public static String appendMarker(final String name, int counter) { return String.format("%s-%s-%s", name, RunOnAllAgentsJobTypeConfig.MARKER, counter); }
Understands how to match job instances associated with run-on-all-agents Jobs
appendMarker
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/RunOnAllAgents.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/RunOnAllAgents.java
Apache-2.0
@Override public boolean isInstanceOf(String jobInstanceName, boolean ignoreCase, String jobConfigName) { return jobTypeConfig.isInstanceOf(jobInstanceName, ignoreCase, jobConfigName); }
Understands how to match job instances associated Jobs that have a single instance
isInstanceOf
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/SingleJobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/SingleJobInstance.java
Apache-2.0
@Override public void createJobInstances(JobInstances jobs, SchedulingContext context, JobConfig jobConfig, String stageName, final JobNameGenerator nameGenerator, final Clock clock, InstanceFactory instanceFactory) { instanceFactory.reallyCreateJobInstance(jobConfig, jobs...
Understands how to match job instances associated Jobs that have a single instance
createJobInstances
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/SingleJobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/SingleJobInstance.java
Apache-2.0
@Override public void createRerunInstances(JobInstance oldJob, JobInstances jobInstances, SchedulingContext context, StageConfig stageConfig, final Clock clock, InstanceFactory instanceFactory) { String jobName = oldJob.getName(); JobConfig jobConfig = stageConfig.jobConfigByInstanceName(jobName, tr...
Understands how to match job instances associated Jobs that have a single instance
createRerunInstances
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/SingleJobInstance.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/SingleJobInstance.java
Apache-2.0
public MaterialRevisions getMaterialRevisions() { return materialRevisions; }
Understands why a pipeline was triggered and what revisions it contains
getMaterialRevisions
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/buildcause/BuildCause.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/buildcause/BuildCause.java
Apache-2.0
public final String getBuildCauseMessage() { return trigger.getMessage(); }
Understands why a pipeline was triggered and what revisions it contains
getBuildCauseMessage
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/buildcause/BuildCause.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/buildcause/BuildCause.java
Apache-2.0
public final boolean isForced() { return trigger.isForced(); }
Understands why a pipeline was triggered and what revisions it contains
isForced
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/buildcause/BuildCause.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/buildcause/BuildCause.java
Apache-2.0
public void setMaterialRevisions(MaterialRevisions materialRevisions) { this.materialRevisions = materialRevisions; BuildTrigger newTrigger = BuildTrigger.forModifications(materialRevisions); if (newTrigger.trumps(this.trigger)) { this.trigger = newTrigger; } }
Understands why a pipeline was triggered and what revisions it contains
setMaterialRevisions
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/buildcause/BuildCause.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/buildcause/BuildCause.java
Apache-2.0
public ModificationSummaries toModificationSummaries() { return new ModificationSummaries(getMaterialRevisions()); }
Understands why a pipeline was triggered and what revisions it contains
toModificationSummaries
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/buildcause/BuildCause.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/buildcause/BuildCause.java
Apache-2.0
public boolean trumps(BuildCause existingBuildCause) { return trigger.trumps(existingBuildCause.trigger); }
Understands why a pipeline was triggered and what revisions it contains
trumps
java
gocd/gocd
domain/src/main/java/com/thoughtworks/go/domain/buildcause/BuildCause.java
https://github.com/gocd/gocd/blob/master/domain/src/main/java/com/thoughtworks/go/domain/buildcause/BuildCause.java
Apache-2.0