Skip to content
Snippets Groups Projects
Commit af16ebe3 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

ci webGui - add several sendmessage on error in deploy method; update phpdoc

parent 6a492d17
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ class messenger {
* 'user'=>[visible username in slack],
* 'icon'=>[Slack Icon], // hm, does not seem to work
* ),
* 'slack'=>array(
* 'email'=>array(
* 'from'=>[senders e-mail]
* 'to'=>[email-address(es)] // multiple emails must be delimited with ";"
* )
......
......@@ -1890,6 +1890,7 @@ class project extends base {
// $this->_logaction($sError, __FUNCTION__);
$sReturn.=$oHtml->getBox("info", $sError);
$this->_TempDelete();
$this->_sendMessage($sError."\n".t('phase').': '.$sPhase);
return $sReturn;
} else {
$sReturn.=t("class-project-info-deploy-time-not-reached-and-ignored") . "<br>";
......@@ -1905,6 +1906,7 @@ class project extends base {
$this->_logaction($sError, __FUNCTION__, "error");
$sReturn.=$oHtml->getBox("info", $sError);
$this->_TempDelete();
$this->_sendMessage($sError."\n".t('phase').': '.$sPhase);
return $sReturn;
}
$this->_TempFill($sReturn);
......@@ -1930,6 +1932,7 @@ class project extends base {
$sError = t("class-project-error-command-failed");
$this->_logaction($sError, __FUNCTION__, "error");
$sReturn.=$oHtml->getBox("error", $sError . $sReturn);
$this->_sendMessage($sError."\n".t('phase').': '.$sPhase);
return $sReturn;
}
......@@ -3028,7 +3031,6 @@ class project extends base {
'label' => $sLabel,
'selected' => $bActive ? 'selected' : false,
);
// $sForemanHostgroupDefault = $bActive ? $aItem['title'] : $sForemanHostgroupDefault;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment