File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -345,7 +345,7 @@ pipeline {
345345 sh("""
346346 mkdir -p ./build
347347 ./generate-changelog > build/CHANGELOG
348- ./gradlew --no-daemon -I ./build-cache-init.gradle.kts -- build-cache build buildPlugin --scan
348+ ./gradlew --no-daemon -I ./build-cache-init.gradle.kts -I ./repo-cache-init.gradle.kts -- build-cache build buildPlugin --scan || sleep 3600
349349 """)
350350 script {
351351 if (env.BRANCH_NAME ==~ /^([0-9][0-9][0-9]\.x)$/) {
Original file line number Diff line number Diff line change 1+ val nexusRepo = System .getenv(" NEXUS_REPO" )
2+
3+ if (nexusRepo != null ) {
4+ println (" 🔗 Using Nexus repo at: $nexusRepo " )
5+ allprojects {
6+ buildscript {
7+ repositories {
8+ maven { url = uri(" $nexusRepo /repository/gradle-plugin/" ) }
9+ }
10+ }
11+ repositories {
12+ maven { url = uri(" $nexusRepo /repository/maven-central/" ) }
13+ }
14+ }
15+ } else {
16+ println (" ⚠️ NEXUS_REPO is not set. Using default repositories." )
17+ }
You can’t perform that action at this time.
0 commit comments