Commit 21a83bff by 张思远

init

parent 5790a7ac
Pipeline #167 passed with stage
in 11 seconds
s_ece8cb70341d
\ No newline at end of file
webhook-test-zsy @ bca52141
Subproject commit bca52141537269288704f311648363d39b2755a7
[init]
defaultBranch = none
[fetch]
recurseSubmodules = false
[transfer]
bundleURI = true
[http "http://gitlab.mnks.cn"]
sslCAInfo = D:\\codeTools\\phpstudy_pro\\WWW\\webhook-test-zsy\\builds\\16d5d572\\0\\cyamz\\webhook-test-zsy.tmp\\CI_SERVER_TLS_CA_FILE
concurrent = 1
check_interval = 0
shutdown_timeout = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "test"
url = "https://gitlab.mnks.cn/"
id = 14
token = "16d5d572f7167aa9cbeff7f901124d"
token_obtained_at = 2023-12-20T09:23:38Z
token_expires_at = 0001-01-01T00:00:00Z
executor = "shell"
shell = "powershell"
[runners.cache]
MaxUploadedArchiveSize = 0
@echo off
echo 所有用户帐号ID为:
echo.
for /f "skip=4 tokens=1-4" %%i in ('net user') do (
if not "%%i"=="命令成功完成。" echo %%i
if not "%%j"=="" echo %%j
if not "%%k"=="" echo %%k
)
echo.
echo 当前用户帐号ID为:%username%
pause>nul
@REM @echo off
@REM git config --global --add safe.directory "*"
@REM cd %1
@REM git remote set-url origin %2
@REM git pull
@REM git add .
@REM git commit -m 'test bat'
@REM git push
\ No newline at end of file
......@@ -4,17 +4,14 @@ header('Content-type:text/html;charset=utf-8');
$post = file_get_contents("php://input");
$post = json_decode($post, true);
if (strpos(strtoupper(PHP_OS), 'WIN') === 0) {
$project = $post['project'];
$web_url = $project['web_url'];
$web_url = str_replace('http://','https://', $web_url);
// echo $web_url;exit;
$dir = __DIR__;
$cmd = 't.bat ' . $dir . ' ' . $web_url;
} else {
//su
$cmd = 'bash t.sh';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment