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
832 B

1 year ago
kind: pipeline
type: docker
1 year ago
name: default
1 year ago
1 year ago
environment:
1 year ago
PRODUCT: product-name
PROJECT: project-name
1 year ago
1 year ago
platform:
arch: amd64
os: linux
1 year ago
steps:
- name: build
image: mcr.microsoft.com/dotnet/sdk:6.0
1 year ago
privileged: true
1 year ago
commands:
1 year 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
1 year ago
- name: code-analysis
image: aosapps/drone-sonar-plugin
1 year ago
settings:
1 year ago
sonar_host: dev.ccwin-in.com:3005
sonar_token: sqa_a1da3cf5984f39d9a256493acbae857c6624e954