You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
839 B

2 years ago
kind: pipeline
type: docker
2 years ago
name: default
2 years ago
2 years ago
environment:
2 years ago
PRODUCT: product-name
PROJECT: project-name
2 years ago
2 years ago
platform:
arch: amd64
os: linux
2 years ago
steps:
- name: build
image: mcr.microsoft.com/dotnet/sdk:6.0
2 years ago
privileged: true
2 years ago
commands:
2 years ago
- mkdir -p ./build/publish
- cd ./build
- 'git --no-pager log --date=format:"%Y-%m-%d %H:%M:%S" --pretty=format:"%h - %ad %cn: %s %b" --invert-grep --grep="CI SKIP" --grep="drone" >./publish/log.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
2 years ago
- name: code-analysis
image: aosapps/drone-sonar-plugin
2 years ago
settings:
2 years ago
sonar_host: http://dev.ccwin-in.com:3005
2 years ago
sonar_token: sqa_a1da3cf5984f39d9a256493acbae857c6624e954