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