From 87240cd118b5e9789b67952f24520a5e2d4c015c Mon Sep 17 00:00:00 2001 From: "Aaron (Qilong)" <173288704@qq.com> Date: Fri, 27 Sep 2024 13:04:53 -0400 Subject: [PATCH] Add pipeline yaml (#64) * Add pipeline yaml * Update * update --- Jenkinsfile | 8 ++++++++ pipeline.yml | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 Jenkinsfile create mode 100644 pipeline.yml diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..d10ddb4 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,8 @@ +#!/usr/bin/env groovy + +@Library('PSL@master') +@Library('CILibrary@CBP/stable') _ + +//env.RELEASE_BRANCHES = "master" + +StartPipeline() diff --git a/pipeline.yml b/pipeline.yml new file mode 100644 index 0000000..b406c83 --- /dev/null +++ b/pipeline.yml @@ -0,0 +1,38 @@ +version: 1.4.0 +pipeline_os: windows +#update_changelog_on_release: true +create_github_release: true +create_pr_release_to_master: true + +env: + - GITHUB_ACCESS_TOKEN_ID: github_access_token_acsbuildguy + - JENKINS_NODE_WIN: DynamoWinBuild + +code_analysis: + sonarqube: + source_encoding: UTF-8 + src: . + coverage_reports: + - coverage.info + +build: + - + scripts: + - dotnet msbuild TuneUp.sln -p:Configuration=Release -restore + +deployment: + - + type: sign + files_to_sign: + - TuneUp/bin/Debug/net8.0-windows/TuneUp.dll + - + type: customized + scripts: + - "pwsh.exe -ExecutionPolicy ByPass -Command Compress-Archive -Path TuneUp/bin/Debug/net8.0-windows/TuneUp.dll -DestinationPath TuneUp.zip" + - + type: artifacts + publish_to_jenkins: true + publish_to_artifactory: false + allow_branches: ".*" + outputs: + - TuneUp.zip \ No newline at end of file