Skip to content

Commit 94c26c7

Browse files
committed
Update pipeline python-client
1 parent fe42577 commit 94c26c7

File tree

1 file changed

+16
-46
lines changed

1 file changed

+16
-46
lines changed

.harness/orgs/PROD/projects/Harness_Split/pipelines/pythonclient.yaml

Lines changed: 16 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,22 @@ pipeline:
3636
execution:
3737
steps:
3838
- step:
39-
type: Run
40-
name: Verify Python Installation
41-
identifier: verify_python
39+
type: Sonarqube
40+
name: Sonarqube
41+
identifier: Sonarqube
4242
spec:
43-
connectorRef: account.harnessImage
44-
image: python:3.7.16-alpine
45-
shell: Sh
46-
command: |-
47-
# Python is already installed in this image
48-
python --version
49-
pip --version
50-
outputVariables:
51-
- name: PYTHON_VERSION
52-
timeout: 2m
43+
mode: orchestration
44+
config: default
45+
target:
46+
type: repository
47+
detection: auto
48+
advanced:
49+
log:
50+
level: info
51+
auth:
52+
access_token: <+secrets.getValue("sonarqube-token")>
53+
domain: https://sonar.harness.io/
54+
ssl: true
5355
- step:
5456
timeout: 30m
5557
type: Test
@@ -80,39 +82,7 @@ pipeline:
8082
envVariables:
8183
PYTHONPATH: ${PYTHONPATH}:.
8284
PYTEST_ADDOPTS: "--verbose"
83-
- step:
84-
identifier: sonarqube_scan
85-
name: SonarQube Scan
86-
type: Sonarqube
87-
timeout: 10m
88-
spec:
89-
mode: orchestration
90-
config: default
91-
target:
92-
type: repository
93-
detection: auto
94-
auth:
95-
access_token: <+secrets.getValue("sonarqube-token")>
96-
tool:
97-
project_key: <+codebase.repoName>
98-
branch_name: <+codebase.branch>
99-
pull_request_key: <+codebase.prNumber>
100-
pull_request_branch: <+codebase.targetBranch>
101-
pull_request_base: <+codebase.sourceBranch>
102-
settings:
103-
sonar.host.url: https://sonar.harness.io/
104-
sonar.qualitygate.wait: true
105-
sonar.branch.name: <+codebase.branch>
106-
sonar.pullrequest.key: <+codebase.prNumber>
107-
sonar.pullrequest.branch: <+codebase.targetBranch>
108-
sonar.pullrequest.base: <+codebase.sourceBranch>
109-
strategy:
110-
when: <+codebase.prNumber != "">
111-
matrix:
112-
config:
113-
- default
114-
- branch-scan
115-
rollbackSteps: []
85+
rollbackSteps: []
11686
caching:
11787
enabled: false
11888
paths: []

0 commit comments

Comments
 (0)