|
@ -21,32 +21,8 @@ steps: |
|
|
- echo "${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}\n">./publish/version.txt |
|
|
- 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 |
|
|
- echo ${DRONE_COMMIT_MESSAGE}>>./publish/version.txt |
|
|
|
|
|
|
|
|
- name: stop |
|
|
- name: code-analysis |
|
|
image: appleboy/drone-ssh |
|
|
image: aosapps/drone-sonar-plugin |
|
|
settings: |
|
|
settings: |
|
|
host: dev.ccwin-in.com |
|
|
sonar_host: dev.ccwin-in.com:3005 |
|
|
port: 16085 |
|
|
sonar_token: sqa_a1da3cf5984f39d9a256493acbae857c6624e954 |
|
|
username: Administrator |
|
|
|
|
|
password: Microsoft@2022 |
|
|
|
|
|
command_timeout: 10m |
|
|
|
|
|
script: |
|
|
|
|
|
- env |
|
|
|
|
|
- mkdir -p /d/publish/${V_PRODUCT}/${V_PROJECT} |
|
|
|
|
|
- cd /d/publish/${V_PRODUCT}/${V_PROJECT} |
|
|
|
|
|
- ./stop.cmd |
|
|
|
|
|
- sleep 3 |
|
|
|
|
|
- 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} |
|
|
|
|
|