-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
up: update some for custom dir, update jenkins lib
- Loading branch information
Showing
17 changed files
with
326 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Inhere\Kite\Lib\Jenkins; | ||
|
||
use Toolkit\Stdlib\Obj\AbstractObj; | ||
|
||
/** | ||
* class JenkinsConfig | ||
* | ||
* @author inhere | ||
* @date 2022/11/16 | ||
*/ | ||
class JenkinsConfig extends AbstractObj | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public string $hostUrl = ''; | ||
|
||
/** | ||
* Jenkins username | ||
* | ||
* @var string | ||
*/ | ||
public string $username = ''; | ||
|
||
/** | ||
* Jenkins user password | ||
* | ||
* @var string | ||
*/ | ||
public string $password = ''; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public string $apiToken = ''; | ||
|
||
/** | ||
* @param string $jobName | ||
* | ||
* @return string | ||
*/ | ||
public function jobPageUrl(string $jobName): string | ||
{ | ||
return $this->hostUrl . '/job/' . $jobName; | ||
} | ||
|
||
/** | ||
* @param string $viewName | ||
* | ||
* @return string | ||
*/ | ||
public function viewPageUrl(string $viewName): string | ||
{ | ||
return $this->hostUrl . '/view/' . $viewName; | ||
} | ||
|
||
} |
Oops, something went wrong.