Skip to content

Commit

Permalink
Add initial Jenkins configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
donat committed Jan 16, 2025
1 parent a4f020b commit 687d99d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
35 changes: 35 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// allow build to publish build scans to develocity-staging.eclipse.org
def secrets = [
[path: 'cbi/tools.buildship/develocity.eclipse.org', secretValues: [
[envVar: 'DEVELOCITY_ACCESS_KEY', vaultKey: 'api-token']
]
]
]

pipeline {
agent any

tools {
// https://github.com/eclipse-cbi/jiro/wiki/Tools-(JDK,-Maven,-Ant)#jdk
jdk 'temurin-jdk11-latest'
}

environment {
CI = "true"
}

triggers {
githubPush()
}

stages {
stage('Gradle Help') {
steps {
withVault([vaultSecrets: secrets]) {
sh './gradlew help --scan'
}

}
}
}
}
4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// publish build scans from CI builds
plugins {
id "com.gradle.develocity" version "3.18.1"
id "com.gradle.develocity" version "3.19"
id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.0.2'
}

Expand All @@ -9,8 +9,8 @@ def isCI = System.getenv('CI') != null

develocity {
server = "https://develocity-staging.eclipse.org"
allowUntrustedServer = false // ensure a trusted certificate is configured
buildScan {
publishing.onlyIf { true }
obfuscation {
username { name -> isCI ? 'ci' : 'local' }
ipAddresses { addresses -> addresses.collect { address -> "0.0.0.0" } }
Expand Down

0 comments on commit 687d99d

Please sign in to comment.