-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/os/5.3' into merge-release/os/5.2-release/os/5.…
…3-2024-06-27-152
- Loading branch information
Showing
77 changed files
with
7,509 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
@Library('[email protected]') _ | ||
|
||
import com.r3.build.agents.KubernetesAgent | ||
import com.r3.build.enums.BuildEnvironment | ||
import com.r3.build.enums.KubernetesCluster | ||
import com.r3.build.BuildConstants | ||
import com.r3.build.utils.GitUtils | ||
import com.r3.build.utils.SnykUtils | ||
|
||
KubernetesAgent k8s = new KubernetesAgent( | ||
BuildEnvironment.AMD64_LINUX_JAVA17, | ||
KubernetesCluster.JenkinsAgents, | ||
1 | ||
) | ||
|
||
GitUtils gitUtils = new GitUtils(this) | ||
SnykUtils snykUtils = new SnykUtils(this) | ||
|
||
pipeline { | ||
agent { | ||
kubernetes { | ||
cloud k8s.buildCluster.cloudName | ||
yaml k8s.JSON | ||
yamlMergeStrategy merge() // important to keep tolerations from the inherited template | ||
idleMinutes 15 | ||
podRetention always() | ||
nodeSelector k8s.nodeSelector | ||
label k8s.jenkinsLabel | ||
showRawYaml true | ||
defaultContainer k8s.defaultContainer.name | ||
} | ||
} | ||
|
||
environment { | ||
ARTIFACTORY_CREDENTIALS = credentials('artifactory-credentials') | ||
CORDA_ARTIFACTORY_PASSWORD = "${env.ARTIFACTORY_CREDENTIALS_PSW}" | ||
CORDA_ARTIFACTORY_USERNAME = "${env.ARTIFACTORY_CREDENTIALS_USR}" | ||
BUILD_CACHE_CREDENTIALS = credentials('gradle-ent-cache-credentials') | ||
BUILD_CACHE_PASSWORD = "${env.BUILD_CACHE_CREDENTIALS_PSW}" | ||
BUILD_CACHE_USERNAME = "${env.BUILD_CACHE_CREDENTIALS_USR}" | ||
CORDA_GRADLE_SCAN_KEY = credentials('gradle-build-scans-key') | ||
GRADLE_USER_HOME = "/host_tmp/gradle" | ||
SNYK_TOKEN = credentials("r3-snyk-corda5") | ||
SNYK_ORG_ID = credentials("corda5-snyk-org-id") | ||
} | ||
|
||
options { | ||
timestamps() | ||
} | ||
|
||
triggers { | ||
cron (gitUtils.isReleaseBranch() ? '@midnight' : '') | ||
} | ||
|
||
stages { | ||
stage('SonarQube analysis') { | ||
when { | ||
expression { return env.BRANCH_NAME == gitUtils.getDefaultBranch(gitUtils.getRepoName())} | ||
} | ||
steps { | ||
withSonarQubeEnv('SonarCloud') { | ||
sh './gradlew sonar -Si' | ||
} | ||
} | ||
} | ||
stage('Snyk Code analysis') { | ||
steps { | ||
script { | ||
snykUtils.runSnykCode() | ||
} | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,18 @@ | ||
# Code freeze reviewers | ||
* @driessamyn @jasonbyrner3 @ronanbrowne @rick-r3 @simon-johnson-r3 @blsemo @Omar-awad @aditisdesai @vinir3 @vkolomeyko @Sakpal @owenstanford @davidcurrie @conalsmith-r3 | ||
# Build scripts and Jenkins files should be audited by BLT | ||
# Any changes to source code of corda-api to be reviewd by C5 team leads | ||
|
||
Jenkinsfile @corda/infrastructure-release | ||
.ci/** @corda/infrastructure-release | ||
|
||
gradle/wrapper @corda/infrastructure-release | ||
*.toml @corda/corda5-team-leads | ||
|
||
*.gradle @corda/infrastructure-release | ||
gradle.properties @corda/corda5-team-leads | ||
|
||
*.kt @corda/corda5-team-leads | ||
*.java @corda/corda5-team-leads | ||
|
||
**/scans/*.yaml @corda/corda5-team-leads | ||
|
||
CODEOWNERS @corda/infrastructure-release @corda/corda5-team-leads |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.