Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
webhook-test-zsy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张思远
webhook-test-zsy
Commits
21a83bff
Commit
21a83bff
authored
Dec 21, 2023
by
张思远
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
5790a7ac
Pipeline
#167
passed with stage
in 11 seconds
Changes
7
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1 additions
and
69 deletions
+1
-69
.runner_system_id
.runner_system_id
+0
-2
webhook-test-zsy
builds/16d5d572/0/cyamz/webhook-test-zsy
+0
-1
config
builds/16d5d572/0/cyamz/webhook-test-zsy.tmp/git-template/config
+0
-8
gitlab_runner_env
builds/16d5d572/0/cyamz/webhook-test-zsy.tmp/gitlab_runner_env
+0
-0
config.toml
config.toml
+0
-18
test.bat
test.bat
+0
-36
webhook.php
webhook.php
+1
-4
No files found.
.runner_system_id
deleted
100644 → 0
View file @
5790a7ac
s_ece8cb70341d
\ No newline at end of file
webhook-test-zsy
@
bca52141
Subproject commit bca52141537269288704f311648363d39b2755a7
builds/16d5d572/0/cyamz/webhook-test-zsy.tmp/git-template/config
deleted
100644 → 0
View file @
5790a7ac
[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
builds/16d5d572/0/cyamz/webhook-test-zsy.tmp/gitlab_runner_env
deleted
100644 → 0
View file @
5790a7ac
config.toml
deleted
100644 → 0
View file @
5790a7ac
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
test.bat
deleted
100644 → 0
View file @
5790a7ac
@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
webhook.php
View file @
21a83bff
...
@@ -4,17 +4,14 @@ header('Content-type:text/html;charset=utf-8');
...
@@ -4,17 +4,14 @@ header('Content-type:text/html;charset=utf-8');
$post
=
file_get_contents
(
"php://input"
);
$post
=
file_get_contents
(
"php://input"
);
$post
=
json_decode
(
$post
,
true
);
$post
=
json_decode
(
$post
,
true
);
if
(
strpos
(
strtoupper
(
PHP_OS
),
'WIN'
)
===
0
)
{
if
(
strpos
(
strtoupper
(
PHP_OS
),
'WIN'
)
===
0
)
{
$project
=
$post
[
'project'
];
$project
=
$post
[
'project'
];
$web_url
=
$project
[
'web_url'
];
$web_url
=
$project
[
'web_url'
];
$web_url
=
str_replace
(
'http://'
,
'https://'
,
$web_url
);
// echo $web_url;exit;
$dir
=
__DIR__
;
$dir
=
__DIR__
;
$cmd
=
't.bat '
.
$dir
.
' '
.
$web_url
;
$cmd
=
't.bat '
.
$dir
.
' '
.
$web_url
;
}
else
{
}
else
{
//su
$cmd
=
'bash t.sh'
;
$cmd
=
'bash t.sh'
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment