Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SONARPY-2481 Do not deploy in the test_analyze task #2267

Merged
merged 2 commits into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 28 additions & 3 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,31 @@
cpu: 4

<<: *ONLY_SONARSOURCE_QA
env:
# analysis on next
SONAR_TOKEN: dummy-value
SONAR_HOST_URL: dummy-value
#allow deployment of pull request artifacts to repox
DEPLOY_PULL_REQUEST: true
CIRRUS_CLONE_DEPTH: 50
SIGN_KEY: VAULT[development/kv/data/sign data.key]
PGP_PASSPHRASE: VAULT[development/kv/data/sign data.passphrase]
maven_cache:
folder: ${CIRRUS_WORKING_DIR}/.m2/repository
build_script:
- source cirrus-env BUILD
- regular_mvn_build_deploy_analyze -DskipTests=true -Dsonar.skip=true -P-typeshed_serializer
- ./check-license-compliance.sh
cleanup_before_cache_script: cleanup_maven_repository

test_analyze_task:
depends_on:
- build
<<: *BUILD_CONTAINER_DEFINITION
eks_container:
cpu: 4
memory: 4G
<<: *ONLY_SONARSOURCE_QA
env:
# analysis on next
SONAR_TOKEN: VAULT[development/kv/data/next data.token]
Expand All @@ -95,10 +120,9 @@
- cd python-frontend/typeshed_serializer/resources/python-type-stubs
- git sparse-checkout set stubs/sklearn
- git checkout
build_script:
analyze_script:
- source cirrus-env BUILD
- regular_mvn_build_deploy_analyze -DfailStubGenerationFast=true
- ./check-license-compliance.sh
- PULL_REQUEST_SHA=$GIT_SHA1 regular_mvn_build_deploy_analyze -DfailStubGenerationFast=true -P-deploy-sonarsource,-release,-sign -Dmaven.deploy.skip=true -Dskip.its=true -Dsonar.analysisCache.enabled=true
cleanup_before_cache_script: cleanup_maven_repository

build_win_task:
Expand Down Expand Up @@ -213,8 +237,9 @@
cleanup_before_cache_script: cleanup_maven_repository
cleanup_before_orchestrator_cache_script: bash .cirrus/clean-orchestrator-cache.sh

promote_task:

Check warning on line 240 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L240

task "promote" depends on task "ws_scan", but their only_if conditions are different

Check warning on line 240 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L240

task "promote" depends on task "ws_scan", but their only_if conditions are different
depends_on:
- test_analyze
- ruling
- plugin_qa
- ws_scan
Expand Down
Loading