When starting a manual build, replace the "Manual" commit id with the HEAD hash.
Close #928
This commit is contained in:
parent
3c7cddcc1c
commit
3427252cfe
3 changed files with 11 additions and 9 deletions
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
namespace PHPCI\Service;
|
||||
|
||||
use PHPCI\Helper\Lang;
|
||||
use PHPCI\Model\Build;
|
||||
use PHPCI\Model\Project;
|
||||
use PHPCI\Store\BuildStore;
|
||||
|
|
@ -59,6 +60,7 @@ class BuildService
|
|||
$build->setCommitId($commitId);
|
||||
} else {
|
||||
$build->setCommitId('Manual');
|
||||
$build->setCommitMessage(Lang::get('manual_build'));
|
||||
}
|
||||
|
||||
if (!is_null($branch)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue