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
public StageHistoryPage findStageHistoryPage(String pipelineName, String stageName, Supplier<Pagination> function) { //IMPORTANT: wire cache clearing on job-state-change for me, the day StageHistoryEntry gets jobs ...
Please call pipelineService.save(aPipeline) instead
findStageHistoryPage
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
public StageHistoryEntry findImmediateChronologicallyForwardStageHistoryEntry(StageHistoryEntry stageHistoryEntry) { StageIdentifier stageIdentifier = stageHistoryEntry.getIdentifier(); Map<String, Object> args = arguments("pipelineName", stageIdentifier.getPipelineName()). and("stageName", ...
Please call pipelineService.save(aPipeline) instead
findImmediateChronologicallyForwardStageHistoryEntry
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
String mutexForStageHistory(String pipelineName, String stageName) { return format("%s_stageHistoryMutex_%s_<>_%s", getClass().getName(), pipelineName, stageName).intern(); }
Please call pipelineService.save(aPipeline) instead
mutexForStageHistory
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
String cacheKeyForStageHistories(String pipelineName, String stageName) { return cacheKeyGenerator.generate("stageHistories", new CaseInsensitiveString(pipelineName), new CaseInsensitiveString(stageName)); }
Please call pipelineService.save(aPipeline) instead
cacheKeyForStageHistories
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
String cacheKeyForStageHistoryViaCursor(String pipelineName, String stageName) { return cacheKeyGenerator.generate("findDetailedStageHistoryViaCursor", pipelineName, stageName); }
Please call pipelineService.save(aPipeline) instead
cacheKeyForStageHistoryViaCursor
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
@Override public List<StageIdentifier> findFailedStagesBetween(String pipelineName, String stageName, double fromNaturalOrder, double toNaturalOr...
Please call pipelineService.save(aPipeline) instead
findFailedStagesBetween
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
List<StageHistoryEntry> findStages(Pagination pagination, String pipelineName, String stageName) { Map<String, Object> args = arguments("pipelineName", pipelineName). and("stageName", stageName). and("limit", pagination.getPageSize()). and("offset", pagination.getOffset()).as...
Please call pipelineService.save(aPipeline) instead
findStages
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
private int findOffsetForStage(Stage stage) { String key = cacheKeyForStageOffset(stage); Integer offset = (Integer) goCache.get(key, String.valueOf(stage.getId())); if (offset == null) { Map<String, Object> args = arguments("stageId", stage.getId()). ...
Please call pipelineService.save(aPipeline) instead
findOffsetForStage
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
String cacheKeyForStageOffset(Stage stage) { return cacheKeyGenerator.generate("stageOffsetMap", stage.getIdentifier().getPipelineName(), stage.getIdentifier().getStageName()).intern(); }
Please call pipelineService.save(aPipeline) instead
cacheKeyForStageOffset
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
@Override public List<StageFeedEntry> findAllCompletedStages(FeedModifier modifier, long id, int pageSize) { Map<String, Object> parameters = new HashMap<>(); parameters.put("value", id); parameters.put("pageLimit", pageSize); return getSqlMapClientTemplate().queryForList("allComplet...
Please call pipelineService.save(aPipeline) instead
findAllCompletedStages
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
@Override public List<StageFeedEntry> findStageFeedBy(String pipelineName, Integer pipelineCounter, FeedModifier feedModifier, long pageSize) { Map<String, Object> ...
Please call pipelineService.save(aPipeline) instead
findStageFeedBy
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
@Override public List<StageFeedEntry> findCompletedStagesFor(String pipelineName, FeedModifier feedModifier, long transitionId, long pageSize) { ...
Please call pipelineService.save(aPipeline) instead
findCompletedStagesFor
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
private List<StageFeedEntry> _findCompletedStagesFor(String pipelineName, FeedModifier feedModifier, long transitionId, long pageSize) { //IM...
Please call pipelineService.save(aPipeline) instead
_findCompletedStagesFor
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
@Override public Stage mostRecentWithBuilds(String pipelineName, StageConfig stageConfig) { Long mostRecentId = mostRecentId(pipelineName, CaseInsensitiveString.str(stageConfig.name())); return mostRecentId == null ? NullStage.createNullStage(stageConfig) : stageByIdWithBuildsWithNoAssociations(most...
Please call pipelineService.save(aPipeline) instead
mostRecentWithBuilds
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
Long mostRecentId(String pipelineName, String stageName) { String key = cacheKeyForMostRecentId(pipelineName, stageName); Long id = goCache.get(key); if (id != null) { return id; } synchronized (key) { id = goCache.get(key); if (id != null) { ...
Please call pipelineService.save(aPipeline) instead
mostRecentId
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
@Override public void stageStatusChanged(Stage stage) { String pipelineName = stage.getIdentifier().getPipelineName(); String stageName = stage.getName(); removeFromCache(cacheKeyForMostRecentId(pipelineName, stageName)); removeFromCache(cacheKeyForPipelineAndStage(pipelineName, stag...
Please call pipelineService.save(aPipeline) instead
stageStatusChanged
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
@Override public Stage stageById(long id) { String key = cacheKeyForStageById(id); Stage stage = goCache.get(key); if (stage == null) { synchronized (key) { stage = goCache.get(key); if (stage == null) { stage = getSqlMapClient...
Please call pipelineService.save(aPipeline) instead
stageById
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
String cacheKeyForStageById(long id) { return cacheKeyGenerator.generate("stageById", id); }
Please call pipelineService.save(aPipeline) instead
cacheKeyForStageById
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
@Override public Stage mostRecentPassed(String pipelineName, String stageName) { Map<String, Object> toGet = arguments("pipelineName", pipelineName).and("stageName", stageName).asMap(); Long mostRecentId = getSqlMapClientTemplate().queryForObject("getMostRecentPassedStageId", toGet); return ...
Please call pipelineService.save(aPipeline) instead
mostRecentPassed
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
@Override public boolean isStageActive(String pipelineName, String stageName) { String cacheKey = cacheKeyForPipelineAndStage(pipelineName, stageName); synchronized (cacheKey) { Boolean isActive = goCache.get(cacheKey); if (isActive == null) { final Map<String...
Please call pipelineService.save(aPipeline) instead
isStageActive
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
@Override public Stage getStageByBuild(long buildId) { Stage stage = getSqlMapClientTemplate().queryForObject("getStageByBuildId", buildId); if (stage == null) { throw new DataRetrievalFailureException("Unable to load related stage data for buildId " + buildId); } return ...
Please call pipelineService.save(aPipeline) instead
getStageByBuild
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
@Override public void clearCachedStage(StageIdentifier identifier) { removeFromCache(cacheKeyForListOfStageIdentifiers(identifier)); }
Please call pipelineService.save(aPipeline) instead
clearCachedStage
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
@Override public void clearCachedAllStages(String pipelineName, int pipelineCounter, String stageName) { String cacheForAllStagesOfPipeline = cacheKeyForAllStageOfPipeline(pipelineName, pipelineCounter, stageName); removeFromCache(cacheForAllStagesOfPipeline); }
Please call pipelineService.save(aPipeline) instead
clearCachedAllStages
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
String cacheKeyForPipelineAndStage(String pipelineName, String stageName) { return cacheKeyGenerator.generate("isStageActive", pipelineName.toLowerCase(), stageName.toLowerCase()); }
Please call pipelineService.save(aPipeline) instead
cacheKeyForPipelineAndStage
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
@Override public Stages findAllStagesFor(String pipelineName, int counter) { String key = cacheKeyForPipelineAndCounter(pipelineName, counter); List<Stage> stages = goCache.get(key); if (stages == null) { synchronized (key) { stages = goCache.get(key); ...
Please call pipelineService.save(aPipeline) instead
findAllStagesFor
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
@Override public List<Stage> oldestStagesHavingArtifacts() { return getSqlMapClientTemplate().queryForList("oldestStagesHavingArtifacts"); }
Please call pipelineService.save(aPipeline) instead
oldestStagesHavingArtifacts
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
@Override public void markArtifactsDeletedFor(Stage stage) { getSqlMapClientTemplate().update("markStageArtifactDeleted", arguments("stageId", stage.getId()).asMap()); }
Please call pipelineService.save(aPipeline) instead
markArtifactsDeletedFor
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
String cacheKeyForPipelineAndCounter(String pipelineName, int counter) { return cacheKeyGenerator.generate("allStagesOfPipelineInstance", pipelineName, counter); }
Please call pipelineService.save(aPipeline) instead
cacheKeyForPipelineAndCounter
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
@Override public void jobStatusChanged(JobInstance job) { clearJobStatusDependentCaches(job.getStageId(), job.getIdentifier().getStageIdentifier()); }
Please call pipelineService.save(aPipeline) instead
jobStatusChanged
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
private void clearJobStatusDependentCaches(long stageId, StageIdentifier stageIdentifier) { removeFromCache(cacheKeyForStageById(stageId)); clearCachedStage(stageIdentifier); clearCachedAllStages(stageIdentifier.getPipelineName(), stageIdentifier.getPipelineCounter(), stageIdentifier.getStageNam...
Please call pipelineService.save(aPipeline) instead
clearJobStatusDependentCaches
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
String cacheKeyForLatestStageInstances() { return cacheKeyGenerator.generate("latestStageInstances"); }
Please call pipelineService.save(aPipeline) instead
cacheKeyForLatestStageInstances
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
String cacheKeyForStageCountForGraph(String pipelineName, String stageName) { return cacheKeyGenerator.generate("totalStageCountForChart", pipelineName, stageName); }
Please call pipelineService.save(aPipeline) instead
cacheKeyForStageCountForGraph
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
private void removeFromCache(String key) { synchronized (key) { goCache.remove(key); } }
Please call pipelineService.save(aPipeline) instead
removeFromCache
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
String cacheKeyForMostRecentId(String pipelineName, String stageName) { return cacheKeyGenerator.generate("mostRecentId", pipelineName, stageName); }
Please call pipelineService.save(aPipeline) instead
cacheKeyForMostRecentId
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
private Stage stageByIdWithBuildsWithNoAssociations(long id) { return stageById(id); }
Please call pipelineService.save(aPipeline) instead
stageByIdWithBuildsWithNoAssociations
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/StageSqlMapDao.java
Apache-2.0
@Override public void setNonNullParameter(PreparedStatement ps, int i, VariableValueConfig parameter, JdbcType jdbcType) throws SQLException { ps.setString(i, parameter.getValue()); }
Understands converting a {@link VariableValueConfig } to a string and back
setNonNullParameter
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/handlers/VariableValueConfigTypeHandlerCallback.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/handlers/VariableValueConfigTypeHandlerCallback.java
Apache-2.0
@Override protected VariableValueConfig valueOf(String s) { return new VariableValueConfig(s); }
Understands converting a {@link VariableValueConfig } to a string and back
valueOf
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dao/handlers/VariableValueConfigTypeHandlerCallback.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dao/handlers/VariableValueConfigTypeHandlerCallback.java
Apache-2.0
public void put(GoDashboardPipeline pipeline) { cache.put(pipeline.name(), pipeline); cacheHasChanged(); }
Assumption: The put() and replaceAllEntriesInCacheWith() methods, which change this cache, will always be called from the same thread (queueProcessor in GoDashboardActivityListener). Even get() will be. So, not surrounding it with a synchronizedMap. Also, uses {@link LinkedHashMap} to preserve insertion order. That ord...
put
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dashboard/GoDashboardCache.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dashboard/GoDashboardCache.java
Apache-2.0
public void replaceAllEntriesInCacheWith(List<GoDashboardPipeline> newPipelinesToCache) { cache.clear(); cache.putAll(createMapFor(newPipelinesToCache)); cacheHasChanged(); }
Assumption: The put() and replaceAllEntriesInCacheWith() methods, which change this cache, will always be called from the same thread (queueProcessor in GoDashboardActivityListener). Even get() will be. So, not surrounding it with a synchronizedMap. Also, uses {@link LinkedHashMap} to preserve insertion order. That ord...
replaceAllEntriesInCacheWith
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dashboard/GoDashboardCache.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dashboard/GoDashboardCache.java
Apache-2.0
public GoDashboardPipelines allEntries() { return dashboardPipelines; }
Assumption: The put() and replaceAllEntriesInCacheWith() methods, which change this cache, will always be called from the same thread (queueProcessor in GoDashboardActivityListener). Even get() will be. So, not surrounding it with a synchronizedMap. Also, uses {@link LinkedHashMap} to preserve insertion order. That ord...
allEntries
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dashboard/GoDashboardCache.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dashboard/GoDashboardCache.java
Apache-2.0
private void cacheHasChanged() { dashboardPipelines = new GoDashboardPipelines(new HashMap<>(cache), timeStampBasedCounter); }
Assumption: The put() and replaceAllEntriesInCacheWith() methods, which change this cache, will always be called from the same thread (queueProcessor in GoDashboardActivityListener). Even get() will be. So, not surrounding it with a synchronizedMap. Also, uses {@link LinkedHashMap} to preserve insertion order. That ord...
cacheHasChanged
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dashboard/GoDashboardCache.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dashboard/GoDashboardCache.java
Apache-2.0
private Map<CaseInsensitiveString, GoDashboardPipeline> createMapFor(List<GoDashboardPipeline> pipelines) { Map<CaseInsensitiveString, GoDashboardPipeline> result = new LinkedHashMap<>(); for (GoDashboardPipeline pipeline : pipelines) { result.put(pipeline.name(), pipeline); } ...
Assumption: The put() and replaceAllEntriesInCacheWith() methods, which change this cache, will always be called from the same thread (queueProcessor in GoDashboardActivityListener). Even get() will be. So, not surrounding it with a synchronizedMap. Also, uses {@link LinkedHashMap} to preserve insertion order. That ord...
createMapFor
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/dashboard/GoDashboardCache.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/dashboard/GoDashboardCache.java
Apache-2.0
@Override public Duration getExpectedDuration(String pipelineName, String stageName, JobInstance job) { return duration; }
Understands how to calculate the expected duration of a job
getExpectedDuration
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/JobDurationStrategy.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/JobDurationStrategy.java
Apache-2.0
public PipelineConfig getCurrent() { return current; }
Understands configuration of all the upstream pipelines.
getCurrent
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
Apache-2.0
public List<PipelineConfigDependencyGraph> getUpstreamDependencies() { return upstreamDependencies; }
Understands configuration of all the upstream pipelines.
getUpstreamDependencies
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
Apache-2.0
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } PipelineConfigDependencyGraph that = (PipelineConfigDependencyGraph) o; if (current != null ? !current....
Understands configuration of all the upstream pipelines.
equals
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
Apache-2.0
@Override public int hashCode() { int result = current != null ? current.hashCode() : 0; result = 31 * result + (upstreamDependencies != null ? upstreamDependencies.hashCode() : 0); return result; }
Understands configuration of all the upstream pipelines.
hashCode
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
Apache-2.0
public Queue<PipelineConfigQueueEntry> buildQueue() { Queue<PipelineConfigQueueEntry> configQueue = new LinkedList<>(); Queue<PipelineConfigDependencyEntry> tmp = new LinkedList<>(); tmp.add(new PipelineConfigDependencyEntry(this, new ArrayList<>())); while (true) { PipelineC...
Understands configuration of all the upstream pipelines.
buildQueue
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
Apache-2.0
private Queue<PipelineConfigQueueEntry> removeHead(Queue<PipelineConfigQueueEntry> configQueue) { configQueue.poll(); return configQueue; }
Understands configuration of all the upstream pipelines.
removeHead
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
Apache-2.0
public MaterialConfigs unsharedMaterialConfigs() { MaterialConfigs firstOrderMaterials = new MaterialConfigs(); List<PipelineConfigQueueEntry> queue = new ArrayList<>(buildQueue()); for (MaterialConfig materialConfig : current.materialConfigs()) { if (!existsOnAnyOfPipelinesIn(queue,...
Understands configuration of all the upstream pipelines.
unsharedMaterialConfigs
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
Apache-2.0
public Set<String> allMaterialFingerprints() { Set<String> materialFingerPrints = new HashSet<>(); List<PipelineConfigQueueEntry> queue = new ArrayList<>(buildQueue()); for (PipelineConfigQueueEntry pipelineConfigQueueEntry : queue) { addMaterialsForConfig(materialFingerPrints, List....
Understands configuration of all the upstream pipelines.
allMaterialFingerprints
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
Apache-2.0
private void addMaterialsForConfig(Set<String> materialFingerPrints, List<PipelineConfig> pipelineConfigs) { for (PipelineConfig pipelineConfig : pipelineConfigs) { for (MaterialConfig material : pipelineConfig.materialConfigs()) { materialFingerPrints.add(material.getFingerprint());...
Understands configuration of all the upstream pipelines.
addMaterialsForConfig
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
Apache-2.0
private boolean existsOnAnyOfPipelinesIn(List<PipelineConfigQueueEntry> queue, MaterialConfig materialConfig) { for (PipelineConfigQueueEntry pipelineConfigQueueEntry : queue) { if (pipelineConfigQueueEntry.hasMaterial(materialConfig)) { return true; } } r...
Understands configuration of all the upstream pipelines.
existsOnAnyOfPipelinesIn
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
Apache-2.0
public boolean isRevisionsOfSharedMaterialsIgnored(MaterialRevisions revisions) { MaterialConfigs unsharedScmMaterialConfigs = unsharedMaterialConfigs(); List<PipelineConfigQueueEntry> queue = new ArrayList<>(buildQueue()); for (MaterialRevision revision : revisions) { Material mater...
Understands configuration of all the upstream pipelines.
isRevisionsOfSharedMaterialsIgnored
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
Apache-2.0
private boolean isThisMaterialIgnored(List<PipelineConfigQueueEntry> queue, MaterialRevision revision, MaterialConfig materialConfig) { for (PipelineConfigQueueEntry pipelineConfigQueueEntry : queue) { if (pipelineConfigQueueEntry.hasMaterial(materialConfig)) { if (!pipelineConfigQue...
Understands configuration of all the upstream pipelines.
isThisMaterialIgnored
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
Apache-2.0
public PipelineConfigDependencyGraph getNode() { return node; }
Understands configuration of all the upstream pipelines.
getNode
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
Apache-2.0
public List<PipelineConfig> getPath() { return path; }
Understands configuration of all the upstream pipelines.
getPath
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
Apache-2.0
public PipelineConfig getNode() { return node; }
Understands configuration of all the upstream pipelines.
getNode
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
Apache-2.0
public List<PipelineConfig> getPath() { return path; }
Understands configuration of all the upstream pipelines.
getPath
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
Apache-2.0
@Override public String toString() { return "PipelineConfigQueueEntry{" + "node=" + node + ", path=" + path + '}'; }
Understands configuration of all the upstream pipelines.
toString
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
Apache-2.0
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } PipelineConfigQueueEntry that = (PipelineConfigQueueEntry) o; if (n...
Understands configuration of all the upstream pipelines.
equals
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
Apache-2.0
@Override public int hashCode() { int result = node != null ? node.hashCode() : 0; result = 31 * result + (path != null ? path.hashCode() : 0); return result; }
Understands configuration of all the upstream pipelines.
hashCode
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
Apache-2.0
public List<PipelineConfig> pathWithoutHead() { List<PipelineConfig> copy = new ArrayList<>(path); if (!copy.isEmpty()) { copy.remove(0); } return copy; }
Understands configuration of all the upstream pipelines.
pathWithoutHead
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
Apache-2.0
public boolean containsPipelineInPath(String pipelineName) { for (PipelineConfig pipelineConfig : path) { if (CaseInsensitiveString.str(pipelineConfig.name()).equalsIgnoreCase(pipelineName)) { return true; } } return false; ...
Understands configuration of all the upstream pipelines.
containsPipelineInPath
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
Apache-2.0
public boolean hasMaterial(MaterialConfig materialConfig) { return node.hasMaterialWithFingerprint(materialConfig); }
Understands configuration of all the upstream pipelines.
hasMaterial
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
Apache-2.0
public boolean shouldIgnore(MaterialRevision revision) { Material material = revision.getMaterial(); for (MaterialConfig materialConfig : node.materialConfigs()) { if (material.hasSameFingerprint(materialConfig)) { return revision.getModifications().shouldBeIg...
Understands configuration of all the upstream pipelines.
shouldIgnore
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineConfigDependencyGraph.java
Apache-2.0
public void updateTimelineOnInit() { acquireAllWriteLocks(); try { pipelineRepository.updatePipelineTimeline(this, new ArrayList<>()); } finally { releaseAllWriteLocks(); } }
This is called on system init and is called by Spring. Hence, this is not done in a transaction. At any other time, the method update should be used
updateTimelineOnInit
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
Apache-2.0
public PipelineTimelineEntry runBefore(long id, final CaseInsensitiveString pipelineName) { naturalOrderLock.readLock().lock(); try { TreeSet<PipelineTimelineEntry> treeForPipeline = naturalOrderPmm.get(pipelineName); if (treeForPipeline == null) { return null; ...
@param id for the pipeline @param pipelineName @return PMM which was before the pipeline with this id at the time of insertion of the PTE with the id or null if there was nothing before this pipeline during insertion
runBefore
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
Apache-2.0
public PipelineTimelineEntry runAfter(long id, final CaseInsensitiveString pipelineName) { naturalOrderLock.readLock().lock(); try { TreeSet<PipelineTimelineEntry> treeForPipeline = naturalOrderPmm.get(pipelineName); if (treeForPipeline == null) { return null; ...
@param id for the pipeline @param pipelineName @return PMM which was after the pipeline with this id at the time of insertion of the PTE with the id or null if there was nothing after this pipeline during insertion
runAfter
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
Apache-2.0
private void updateMaximumId(long id) { maximumId = Math.max(id, maximumId); }
@param id for the pipeline @param pipelineName @return PMM which was after the pipeline with this id at the time of insertion of the PTE with the id or null if there was nothing after this pipeline during insertion
updateMaximumId
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
Apache-2.0
private TreeSet<PipelineTimelineEntry> initializedNaturalOrderCollection(final CaseInsensitiveString pipelineName) { if (!naturalOrderPmm.containsKey(pipelineName)) { naturalOrderPmm.put(pipelineName, new TreeSet<>()); } return naturalOrderPmm.get(pipelineName); }
@param id for the pipeline @param pipelineName @return PMM which was after the pipeline with this id at the time of insertion of the PTE with the id or null if there was nothing after this pipeline during insertion
initializedNaturalOrderCollection
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
Apache-2.0
private List<PipelineTimelineEntry> initializedScheduleOrderCollection(final CaseInsensitiveString pipelineName) { if (!scheduleOrderPmm.containsKey(pipelineName)) { scheduleOrderPmm.put(pipelineName, new ArrayList<>()); } return scheduleOrderPmm.get(pipelineName); }
@param id for the pipeline @param pipelineName @return PMM which was after the pipeline with this id at the time of insertion of the PTE with the id or null if there was nothing after this pipeline during insertion
initializedScheduleOrderCollection
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
Apache-2.0
private PipelineTimelineEntry naturalOrderAfter(PipelineTimelineEntry pipelineTimelineEntry) { naturalOrderLock.readLock().lock(); try { return naturalOrderPmm.get(new CaseInsensitiveString(pipelineTimelineEntry.getPipelineName())).higher(pipelineTimelineEntry); } finally { ...
@param id for the pipeline @param pipelineName @return PMM which was after the pipeline with this id at the time of insertion of the PTE with the id or null if there was nothing after this pipeline during insertion
naturalOrderAfter
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
Apache-2.0
PipelineTimelineEntry naturalOrderBefore(PipelineTimelineEntry pipelineTimelineEntry) { naturalOrderLock.readLock().lock(); try { return naturalOrderPmm.get(new CaseInsensitiveString(pipelineTimelineEntry.getPipelineName())).lower(pipelineTimelineEntry); } finally { natur...
@param id for the pipeline @param pipelineName @return PMM which was after the pipeline with this id at the time of insertion of the PTE with the id or null if there was nothing after this pipeline during insertion
naturalOrderBefore
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
Apache-2.0
@TestOnly public void clearWhichIsEvilAndShouldNotBeUsedInRealWorld() { acquireAllWriteLocks(); try { naturalOrderPmm.clear(); scheduleOrderPmm.clear(); } finally { releaseAllWriteLocks(); } }
No reason why you should use this apart from test tear down
clearWhichIsEvilAndShouldNotBeUsedInRealWorld
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
Apache-2.0
public int instanceCount(CaseInsensitiveString pipelineName) { scheduleOrderLock.readLock().lock(); try { List<PipelineTimelineEntry> instances = scheduleOrderPmm.get(pipelineName); return instances == null ? 0 : instances.size(); } finally { scheduleOrderLock...
No reason why you should use this apart from test tear down
instanceCount
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
Apache-2.0
public PipelineTimelineEntry instanceFor(CaseInsensitiveString pipelineName, int index) { scheduleOrderLock.readLock().lock(); try { List<PipelineTimelineEntry> instances = scheduleOrderPmm.get(pipelineName); return instances == null ? null : instances.get(index); } final...
No reason why you should use this apart from test tear down
instanceFor
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
Apache-2.0
public PipelineTimelineEntry getEntryFor(CaseInsensitiveString pipelineName, Integer pipelineCounter) { scheduleOrderLock.readLock().lock(); try { List<PipelineTimelineEntry> instances = scheduleOrderPmm.get(pipelineName); for (int i = instances.size() - 1; i >= 0; i--) { ...
No reason why you should use this apart from test tear down
getEntryFor
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/PipelineTimeline.java
Apache-2.0
public String getPath() { return path; }
Understands A single backup of the server
getPath
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
Apache-2.0
public Date getTime() { return time; }
Understands A single backup of the server
getTime
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
Apache-2.0
public String getUsername() { return username; }
Understands A single backup of the server
getUsername
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
Apache-2.0
public void setUsername(String username) { this.username = username; }
Understands A single backup of the server
setUsername
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
Apache-2.0
public BackupStatus getStatus() { return status; }
Understands A single backup of the server
getStatus
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
Apache-2.0
public Optional<BackupProgressStatus> getBackupProgressStatus() { return Optional.ofNullable(backupProgressStatus); }
Understands A single backup of the server
getBackupProgressStatus
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
Apache-2.0
public String getMessage() { return message; }
Understands A single backup of the server
getMessage
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
Apache-2.0
public boolean isSuccessful() { return BackupStatus.COMPLETED.equals(status); }
Understands A single backup of the server
isSuccessful
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
Apache-2.0
public void setMessage(String message) { this.message = message; }
Understands A single backup of the server
setMessage
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
Apache-2.0
public void setProgressStatus(BackupProgressStatus status) { this.backupProgressStatus = status; this.message = status.getMessage(); }
Understands A single backup of the server
setProgressStatus
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
Apache-2.0
public void markCompleted() { this.status = BackupStatus.COMPLETED; }
Understands A single backup of the server
markCompleted
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
Apache-2.0
public void markError(String message) { this.status = BackupStatus.ERROR; this.message = message; }
Understands A single backup of the server
markError
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
Apache-2.0
public Boolean hasFailed() { return BackupStatus.ERROR.equals(status); }
Understands A single backup of the server
hasFailed
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/ServerBackup.java
Apache-2.0
public boolean ensurePipelineVisible(CaseInsensitiveString pipelineToAdd) { boolean modified = false; for (DashboardFilter f : viewFilters.filters()) { modified = modified || f.allowPipeline(pipelineToAdd); } return modified; }
Allows pipeline to be visible to entire filter set; generally used as an after-hook on pipeline creation. @param pipelineToAdd - the name of the pipeline @return true if any filters were modified, false if all filters are unchanged
ensurePipelineVisible
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/user/PipelineSelections.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/user/PipelineSelections.java
Apache-2.0
private String sha256(byte[] bytes) { MessageDigest md; try { md = MessageDigest.getInstance(HASH_ALGORITHM); } catch (NoSuchAlgorithmException ignored) { return null; // Using standard algorithm that is required to exist } md.update(bytes); retu...
Allows pipeline to be visible to entire filter set; generally used as an after-hook on pipeline creation. @param pipelineToAdd - the name of the pipeline @return true if any filters were modified, false if all filters are unchanged
sha256
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/user/PipelineSelections.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/user/PipelineSelections.java
Apache-2.0
public String artifactBaseUrl(JobIdentifier identifier) { return relative(artifactUrlReader.findArtifactUrl(identifier)); }
Understands objects required by domain entities to render xml representation
artifactBaseUrl
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/xml/XmlWriterContext.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/xml/XmlWriterContext.java
Apache-2.0
public String artifactRootPath(JobIdentifier identifier) { try { return artifactUrlReader.findArtifactRoot(identifier); } catch (IllegalArtifactLocationException e) { throw bomb(e); } }
Understands objects required by domain entities to render xml representation
artifactRootPath
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/xml/XmlWriterContext.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/xml/XmlWriterContext.java
Apache-2.0
public JobPlan planFor(JobIdentifier jobId) { return jobPlanLoader.loadOriginalJobPlan(jobId); }
Understands objects required by domain entities to render xml representation
planFor
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/xml/XmlWriterContext.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/xml/XmlWriterContext.java
Apache-2.0
public String relative(String path) { if (startsWith(path, "/")) { return this.baseUrl + path; } return this.baseUrl + "/" + path; }
Understands objects required by domain entities to render xml representation
relative
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/xml/XmlWriterContext.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/xml/XmlWriterContext.java
Apache-2.0
private String stripEndSlashIfPresent(String baseUrl) { return removeEnd(trimToEmpty(baseUrl), "/"); }
Understands objects required by domain entities to render xml representation
stripEndSlashIfPresent
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/xml/XmlWriterContext.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/xml/XmlWriterContext.java
Apache-2.0
public String stagesXmlLink(String pipelineName) { return relative(format("/api/feed/pipelines/%s/stages.xml", pipelineName)); }
Understands objects required by domain entities to render xml representation
stagesXmlLink
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/xml/XmlWriterContext.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/xml/XmlWriterContext.java
Apache-2.0
public String stagesXmlLink(String pipelineName, long beforePipelineCounter) { return format("%s?before=%s", stagesXmlLink(pipelineName), beforePipelineCounter); }
Understands objects required by domain entities to render xml representation
stagesXmlLink
java
gocd/gocd
server/src/main/java/com/thoughtworks/go/server/domain/xml/XmlWriterContext.java
https://github.com/gocd/gocd/blob/master/server/src/main/java/com/thoughtworks/go/server/domain/xml/XmlWriterContext.java
Apache-2.0