Skip to content

Commit 03dc167

Browse files
committed
Add initial Jenkins configuration
1 parent a4f020b commit 03dc167

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed

Jenkinsfile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// allow build to publish build scans to develocity-staging.eclipse.org
2+
def secrets = [
3+
[path: 'cbi/tools.buildship/develocity.eclipse.org', secretValues: [
4+
[envVar: 'DEVELOCITY_ACCESS_KEY', vaultKey: 'api-token']
5+
]
6+
]
7+
]
8+
9+
pipeline {
10+
agent any
11+
12+
tools {
13+
// https://github.com/eclipse-cbi/jiro/wiki/Tools-(JDK,-Maven,-Ant)#jdk
14+
jdk 'temurin-jdk11-latest'
15+
}
16+
17+
environment {
18+
CI = "true"
19+
}
20+
21+
triggers {
22+
githubPush()
23+
}
24+
25+
stages {
26+
stage('Sanity check') {
27+
steps {
28+
withVault([vaultSecrets: secrets]) {
29+
sh './gradlew assemble checkstyleMain -Peclipse.version=434 -Pbuild.invoker=CI --info --stacktrace'
30+
}
31+
32+
}
33+
}
34+
}
35+
}

settings.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
// publish build scans from CI builds
22
plugins {
3-
id "com.gradle.develocity" version "3.18.1"
4-
id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.0.2'
3+
id "com.gradle.develocity" version "3.19"
4+
//id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.0.2'
55
}
66

77

88
def isCI = System.getenv('CI') != null
99

1010
develocity {
1111
server = "https://develocity-staging.eclipse.org"
12+
allowUntrustedServer = false // ensure a trusted certificate is configured
1213
buildScan {
13-
publishing.onlyIf { true }
1414
obfuscation {
1515
username { name -> isCI ? 'ci' : 'local' }
1616
ipAddresses { addresses -> addresses.collect { address -> "0.0.0.0" } }

0 commit comments

Comments
 (0)