Artefact is considered stale if passed changed files match the spec (without additional stale check)
Publish PHP Package / docker (push) Successful in 3m28s
Details
Publish PHP Package / docker (push) Successful in 3m28s
Details
This commit is contained in:
parent
ade0ef5373
commit
97e948d132
|
@ -89,11 +89,19 @@ class TaskmanArtefact
|
||||||
{
|
{
|
||||||
if(!isset($this->sources_affected[$idx]))
|
if(!isset($this->sources_affected[$idx]))
|
||||||
{
|
{
|
||||||
$sources = $this->task->getFileChanges() != null ?
|
//NOTE: more conservative implementation which always checks for staleness
|
||||||
//tries to match changed files with sources spec
|
//$sources = $this->task->getFileChanges() != null ?
|
||||||
$this->getChangedSources($idx) :
|
// //tries to match changed files with sources spec
|
||||||
$this->getSources($idx);
|
// $this->getChangedSources($idx) :
|
||||||
$this->sources_affected[$idx] = is_stale($this->getPath(), $sources);
|
// $this->getSources($idx);
|
||||||
|
//$this->sources_affected[$idx] = is_stale($this->getPath(), $sources);
|
||||||
|
|
||||||
|
//NOTE: if there any file changes we simply check if there are any changed sources,
|
||||||
|
// and if yes then we mark the artefact as affected
|
||||||
|
if($this->task->getFileChanges() != null)
|
||||||
|
$this->sources_affected[$idx] = count($this->getChangedSources($idx)) > 0;
|
||||||
|
else
|
||||||
|
$this->sources_affected[$idx] = is_stale($this->getPath(), $this->getSources($idx));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->sources_affected[$idx];
|
return $this->sources_affected[$idx];
|
||||||
|
|
Loading…
Reference in New Issue