From 39c7fa8a811e3d66d5ddf0a4ec4748442566bcc6 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Tue, 26 Sep 2023 18:52:16 +0800 Subject: [PATCH] test --- .drone.yml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4941897..5b941c2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -21,18 +21,6 @@ steps: - echo "${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}\n">./publish/version.txt - echo ${DRONE_COMMIT_MESSAGE}>>./publish/version.txt - - name: publish - image: plugins/s3 - settings: - endpoint: http://dev.ccwin-in.com:3008 - path_style: true - bucket: default - access_key: O222sbIaMKeGfeX18t8K - secret_key: 0LEOWfXSDnaLbIYGZfdKUxyi2kYIayx4YvdLTgcR - source: build/publish/**/* - strip_prefix: build/publish/ - target: /$V_PRODUCT/${V_PROJECT}/${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8} - - name: stop image: appleboy/drone-ssh settings: @@ -42,6 +30,10 @@ steps: password: Microsoft@2022 command_timeout: 10m script: + - echo $V_PRODUCT + - echo ${V_PRODUCT} + - echo "${V_PRODUCT}" + - echo "$${V_PRODUCT}" - mkdir -p /d/publish/${V_PRODUCT}/${V_PROJECT} - cd /d/publish/${V_PRODUCT}/${V_PROJECT} - ./stop.cmd @@ -49,3 +41,15 @@ steps: - cd .. - rm -rf publish - mkdir -p publish + + - name: publish + image: plugins/s3 + settings: + endpoint: http://dev.ccwin-in.com:3008 + path_style: true + bucket: default + access_key: O222sbIaMKeGfeX18t8K + secret_key: 0LEOWfXSDnaLbIYGZfdKUxyi2kYIayx4YvdLTgcR + source: build/publish/**/* + strip_prefix: build/publish/ + target: /$V_PRODUCT/${V_PROJECT}/${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}