Skip to content

Commit 5adbbee

Browse files
leonardo-pilastri-sonarsourceSonarTechtomasz-tylenda-sonarsourceGabrielFleischerdorian-burihabwa-sonarsource
authored
JAVASE-160 Prepare sign key rotation release 8.16.3 (#53)
Co-authored-by: SonarTech <1842438+SonarTech@users.noreply.github.com> Co-authored-by: tomasz-tylenda-sonarsource <tomasz.tylenda@sonarsource.com> Co-authored-by: Gabriel Fleischer <gabriel.fleischer@sonarsource.com> Co-authored-by: Dorian Burihabwa <dorian.burihabwa@sonarsource.com>
1 parent 59591ec commit 5adbbee

27 files changed

+162
-179
lines changed

.cirrus.star

Lines changed: 0 additions & 4 deletions
This file was deleted.

.cirrus.yml

Lines changed: 0 additions & 136 deletions
Original file line numberDiff line numberDiff line change
@@ -1,136 +0,0 @@
1-
env:
2-
CIRRUS_CLONE_DEPTH: 20
3-
ARTIFACTORY_URL: VAULT[development/kv/data/repox data.url]
4-
ARTIFACTORY_PRIVATE_USERNAME: VAULT[development/artifactory/token/${CIRRUS_REPO_OWNER}-${CIRRUS_REPO_NAME}-private-reader username]
5-
ARTIFACTORY_PRIVATE_PASSWORD: VAULT[development/artifactory/token/${CIRRUS_REPO_OWNER}-${CIRRUS_REPO_NAME}-private-reader access_token]
6-
ARTIFACTORY_DEPLOY_USERNAME: vault-${CIRRUS_REPO_OWNER}-${CIRRUS_REPO_NAME}-qa-deployer
7-
ARTIFACTORY_DEPLOY_PASSWORD: VAULT[development/artifactory/token/${CIRRUS_REPO_OWNER}-${CIRRUS_REPO_NAME}-qa-deployer access_token]
8-
#Possible values for ARTIFACTORY_DEPLOY_REPO: sonarsource-private-qa, sonarsource-public-qa
9-
ARTIFACTORY_DEPLOY_REPO: sonarsource-public-qa
10-
ARTIFACTORY_ACCESS_TOKEN: VAULT[development/artifactory/token/${CIRRUS_REPO_OWNER}-${CIRRUS_REPO_NAME}-private-reader access_token]
11-
# Use bash (instead of sh on linux or cmd.exe on windows)
12-
CIRRUS_SHELL: bash
13-
14-
container_definition: &CONTAINER_DEFINITION
15-
image: "${CIRRUS_AWS_ACCOUNT}.dkr.ecr.eu-central-1.amazonaws.com/base:j23-latest"
16-
cluster_name: ${CIRRUS_CLUSTER_NAME}
17-
region: eu-central-1
18-
namespace: default
19-
20-
orchestrator_cache_preparation_definition: &ORCHESTRATOR_CACHE_PREPARATION_DEFINITION
21-
set_orchestrator_home_script: |
22-
export TODAY=$(date '+%Y-%m-%d')
23-
echo "TODAY=${TODAY}" >> $CIRRUS_ENV
24-
echo "ORCHESTRATOR_HOME=${CIRRUS_WORKING_DIR}/orchestrator/${TODAY}" >> $CIRRUS_ENV
25-
mkdir_orchestrator_home_script: |
26-
echo "Create dir ${ORCHESTRATOR_HOME} if needed"
27-
mkdir -p ${ORCHESTRATOR_HOME}
28-
29-
orchestrator_cache_elements_definition: &ORCHESTRATOR_CACHE_ELEMENTS_DEFINITION
30-
folder: ${ORCHESTRATOR_HOME}
31-
fingerprint_script: echo ${TODAY}
32-
reupload_on_changes: "true"
33-
34-
only_sonarsource_qa: &ONLY_SONARSOURCE_QA
35-
only_if: ${CIRRUS_USER_COLLABORATOR} == 'true' && ${CIRRUS_TAG} == "" && (${CIRRUS_PR} != "" || ${CIRRUS_BRANCH} == "master" || ${CIRRUS_BRANCH} =~ "branch-.*" || ${CIRRUS_BRANCH} =~ "dogfood-on-.*")
36-
37-
build_task:
38-
eks_container:
39-
<<: *CONTAINER_DEFINITION
40-
cpu: 4
41-
memory: 4G
42-
env:
43-
# analysis on next
44-
SONAR_TOKEN: VAULT[development/kv/data/next data.token]
45-
SONAR_HOST_URL: https://next.sonarqube.com/sonarqube
46-
#allow deployment of pull request artifacts to repox
47-
DEPLOY_PULL_REQUEST: true
48-
# signing artifacts
49-
SIGN_KEY: VAULT[development/kv/data/sign data.key]
50-
PGP_PASSPHRASE: VAULT[development/kv/data/sign data.passphrase]
51-
maven_cache:
52-
folder: ${CIRRUS_WORKING_DIR}/.m2/repository
53-
build_script:
54-
- source cirrus-env BUILD
55-
- regular_mvn_build_deploy_analyze
56-
cleanup_before_cache_script: cleanup_maven_repository
57-
58-
ws_scan_task:
59-
<<: *ONLY_SONARSOURCE_QA
60-
eks_container:
61-
<<: *CONTAINER_DEFINITION
62-
image: ${CIRRUS_AWS_ACCOUNT}.dkr.ecr.eu-central-1.amazonaws.com/base:j17-latest
63-
cpu: 4
64-
memory: 4G
65-
# run only on master and long-term branches
66-
only_if: $CIRRUS_USER_COLLABORATOR == 'true' && ($CIRRUS_BRANCH == "master" || $CIRRUS_BRANCH =~ "branch-.*" || $CIRRUS_BRANCH =~ "mend-.*")
67-
env:
68-
WS_APIKEY: VAULT[development/kv/data/mend data.apikey]
69-
maven_cache:
70-
folder: ${CIRRUS_WORKING_DIR}/.m2/repository
71-
whitesource_script:
72-
- source cirrus-env QA
73-
- source set_maven_build_version $BUILD_NUMBER
74-
- mvn clean install --batch-mode -Dmaven.test.skip=true -pl '!java-symbolic-execution/java-symbolic-execution-checks-test-sources'
75-
- source ws_scan.sh
76-
allow_failures: "true"
77-
always:
78-
ws_artifacts:
79-
path: "whitesource/**/*"
80-
81-
ruling_task:
82-
depends_on:
83-
- build
84-
<<: *ONLY_SONARSOURCE_QA
85-
eks_container:
86-
<<: *CONTAINER_DEFINITION
87-
image: ${CIRRUS_AWS_ACCOUNT}.dkr.ecr.eu-central-1.amazonaws.com/base:j17-latest
88-
cpu: 14
89-
memory: 8G
90-
maven_cache:
91-
folder: ${CIRRUS_WORKING_DIR}/.m2/repository
92-
<<: *ORCHESTRATOR_CACHE_PREPARATION_DEFINITION
93-
orchestrator_LATEST_RELEASE_cache:
94-
<<: *ORCHESTRATOR_CACHE_ELEMENTS_DEFINITION
95-
submodules_script:
96-
- git submodule update --init --recursive
97-
env:
98-
MAVEN_OPTS: "-Xmx3g"
99-
GITHUB_TOKEN: VAULT[development/github/token/licenses-ro token]
100-
matrix:
101-
# Supported values for JAVA_PLUGIN_VERSION:
102-
# LATEST_RELEASE, LATEST_MASTER, LATEST_DOGFOOD, POM_PROPERTY or a fixed version like 8.15.0.39249
103-
- PROFILE: without-sonarqube-project
104-
JAVA_PLUGIN_VERSION: LATEST_MASTER
105-
- PROFILE: without-sonarqube-project
106-
JAVA_PLUGIN_VERSION: POM_PROPERTY
107-
- PROFILE: only-sonarqube-project
108-
JAVA_PLUGIN_VERSION: LATEST_MASTER
109-
ruling_script:
110-
- source cirrus-env QA
111-
- source set_maven_build_version $BUILD_NUMBER
112-
- export SONAR_JAVA_VERSION="$(.cirrus/resolve-sonar-java-plugin-version.sh "${JAVA_PLUGIN_VERSION}")"
113-
- echo "Using SONAR_JAVA_VERSION=${SONAR_JAVA_VERSION}"
114-
- cd its/ruling
115-
- mvn package --batch-mode "-Pit-ruling,$PROFILE" -Dsonar.java.version="$SONAR_JAVA_VERSION" -Dsonar.runtimeVersion=LATEST_RELEASE -Dmaven.test.redirectTestOutputToFile=false -B -e -V -Dparallel=methods -DuseUnlimitedThreads=true
116-
cleanup_before_cache_script: cleanup_maven_repository
117-
on_failure:
118-
actual_artifacts:
119-
path: "${CIRRUS_WORKING_DIR}/its/ruling/target/actual/**/*"
120-
121-
promote_task:
122-
depends_on:
123-
- build
124-
- ws_scan
125-
- ruling
126-
<<: *ONLY_SONARSOURCE_QA
127-
eks_container:
128-
<<: *CONTAINER_DEFINITION
129-
cpu: 2
130-
memory: 1G
131-
env:
132-
ARTIFACTORY_PROMOTE_ACCESS_TOKEN: VAULT[development/artifactory/token/${CIRRUS_REPO_OWNER}-${CIRRUS_REPO_NAME}-promoter access_token]
133-
maven_cache:
134-
folder: ${CIRRUS_WORKING_DIR}/.m2/repository
135-
main_script: cirrus_promote_maven
136-
cleanup_before_cache_script: cleanup_maven_repository
File renamed without changes.

.github/workflows/PrepareNextIteration.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
Next-Iteration-Job:
1212
name: Next Iteration Job
13-
runs-on: ubuntu-latest-large
13+
runs-on: github-ubuntu-latest-s
1414
permissions:
1515
pull-requests: write
1616
contents: write
@@ -23,11 +23,12 @@ jobs:
2323
- name: Update Version Number
2424
env:
2525
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
NEXT_VERSION: ${{ inputs.nextVersion }}
2627
run: |
2728
git config user.name "${GITHUB_ACTOR}"
2829
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
2930
git checkout -b gh-action/next-iteration
30-
mvn versions:set --batch-mode -DgenerateBackupPoms=false -DnewVersion="${{ inputs.nextVersion }}"
31+
mvn versions:set --batch-mode -DgenerateBackupPoms=false -DnewVersion="${NEXT_VERSION}"
3132
git commit -m 'Prepare next development iteration' -a
3233
git push --set-upstream origin gh-action/next-iteration
3334
gh pr create -B master --title 'Prepare next development iteration' --body ''

.github/workflows/PullRequestClosed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
PullRequestMerged_job:
99
name: Pull Request Merged
10-
runs-on: ubuntu-latest-large
10+
runs-on: github-ubuntu-latest-s
1111
permissions:
1212
id-token: write
1313
pull-requests: read

.github/workflows/PullRequestCreated.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
PullRequestCreated_job:
99
name: Pull Request Created
10-
runs-on: ubuntu-latest-large
10+
runs-on: github-ubuntu-latest-s
1111
permissions:
1212
id-token: write
1313
# For external PR, ticket should be created manually

.github/workflows/RequestReview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
RequestReview_job:
99
name: Request review
10-
runs-on: ubuntu-latest-large
10+
runs-on: github-ubuntu-latest-s
1111
permissions:
1212
id-token: write
1313
# For external PR, ticket should be moved manually

.github/workflows/SubmitReview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
SubmitReview_job:
99
name: Submit Review
10-
runs-on: ubuntu-latest-large
10+
runs-on: github-ubuntu-latest-s
1111
permissions:
1212
id-token: write
1313
pull-requests: read

.github/workflows/ToggleLockBranch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
ToggleLockBranch_job:
88
name: Toggle lock branch
9-
runs-on: ubuntu-latest-large
9+
runs-on: github-ubuntu-latest-s
1010
permissions:
1111
id-token: write
1212
steps:

.github/workflows/UpdateRuleMetadata.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88
jobs:
99
UpdateRuleMetadata_job:
1010
name: Update Rule Metadata
11-
runs-on: ubuntu-latest-large
11+
runs-on: github-ubuntu-latest-s
1212
permissions:
1313
pull-requests: write
1414
contents: write

0 commit comments

Comments
 (0)