Commit 54efa98a by 张思远

m

parents 4ff0c8ac 0eb75f7f
Pipeline #160 failed with stages
in 0 seconds
build-job: build-job:
stage: build stage: build
script: script:
- echo "Hello, $GITLAB_USER_LOGIN!" - echo "Hello, 1"
tags:
- test
test-job1: test-job1:
stage: test stage: test
script: script:
- echo "This job tests something" - echo "This job tests something"
tags:
- test
test-job2: test-job2:
stage: test stage: test
...@@ -15,9 +19,13 @@ test-job2: ...@@ -15,9 +19,13 @@ test-job2:
- echo "After the echo commands complete, it runs the sleep command for 20 seconds" - echo "After the echo commands complete, it runs the sleep command for 20 seconds"
- echo "which simulates a test that runs 20 seconds longer than test-job1" - echo "which simulates a test that runs 20 seconds longer than test-job1"
- sleep 20 - sleep 20
tags:
- test
deploy-prod: deploy-prod:
stage: deploy stage: deploy
script: script:
- echo "This job deploys something from the $CI_COMMIT_BRANCH branch." - echo "This job deploys something from the 1"
environment: production environment: production
tags:
- test
<<<<<<< HEAD
cd %1 cd %1
git pull git pull
=======
%username%
pause
>>>>>>> 86113a3e1937102c4b42424a70135869c24d5425
#!/bin/bash
git pull
\ No newline at end of file
git pull test success git pull test success
test runner test runner
test piplelines test piplelines
runer test <<<<<<< HEAD
\ No newline at end of file runer test
=======
test runner tags
>>>>>>> 0eb75f7f9bbda142f21dbf959f2f34994b023be9
<?php <?php
header('Content-type:text/html;charset=utf-8'); 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);
$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; 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';
}
$descriptorspec = [ $descriptorspec = [
["pipe", "r"], // stdin ["pipe", "r"], // stdin
["pipe", "w"], // stdout ["pipe", "w"], // stdout
......
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