diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..ac8093264 --- /dev/null +++ b/Jenkinsfile @@ -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' + } + + } + } + } +} \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index 99e32edd7..0b7225e6a 100644 --- a/settings.gradle +++ b/settings.gradle @@ -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' } @@ -11,6 +11,8 @@ develocity { server = "https://develocity-staging.eclipse.org" buildScan { publishing.onlyIf { true } + projectId = "tools.buildship" + termsOfUseAgree = "yes" obfuscation { username { name -> isCI ? 'ci' : 'local' } ipAddresses { addresses -> addresses.collect { address -> "0.0.0.0" } }