Changed behavior so triggered builds ignore version
Version checks are only done on polling projects.
This commit is contained in:
parent
d0b745cc9f
commit
22db2cfdad
4
cycle.go
4
cycle.go
@ -110,7 +110,8 @@ func (p *Project) fetch() {
|
|||||||
|
|
||||||
p.setVersion(strings.TrimSpace(string(version)))
|
p.setVersion(strings.TrimSpace(string(version)))
|
||||||
|
|
||||||
// check if this specific version has attempted a build yet
|
if p.poll > 0 {
|
||||||
|
// if polling, check if this specific version has attempted a build yet
|
||||||
lVer, err := p.ds.LastVersion(stageBuild)
|
lVer, err := p.ds.LastVersion(stageBuild)
|
||||||
if err != datastore.ErrNotFound && p.errHandled(err) {
|
if err != datastore.ErrNotFound && p.errHandled(err) {
|
||||||
return
|
return
|
||||||
@ -123,6 +124,7 @@ func (p *Project) fetch() {
|
|||||||
vlog("No new version found for Project: %s Version: %s.\n", p.id(), p.version)
|
vlog("No new version found for Project: %s Version: %s.\n", p.id(), p.version)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//remove any existing data that matches version hash
|
//remove any existing data that matches version hash
|
||||||
if p.errHandled(os.RemoveAll(p.workingDir())) {
|
if p.errHandled(os.RemoveAll(p.workingDir())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user