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 9b41961
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 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'
}

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


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 9b41961

Please sign in to comment.