mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[build,ci] Enable artifactory build cache (#4200)
This commit is contained in:
@@ -49,3 +49,28 @@ include 'wpilibNewCommands'
|
||||
include 'myRobot'
|
||||
include 'docs'
|
||||
include 'msvcruntime'
|
||||
|
||||
buildCache {
|
||||
def cred = {
|
||||
if (System.env[it] != null) {
|
||||
return System.env[it]
|
||||
} else {
|
||||
return System.getProperty(it)
|
||||
}
|
||||
}
|
||||
local {
|
||||
enabled = !System.getenv().containsKey("CI")
|
||||
}
|
||||
remote(HttpBuildCache) {
|
||||
url = "https://frcmaven.wpi.edu/artifactory/wpilib-generic-gradle-cache/"
|
||||
String user = cred('ARTIFACTORY_PUBLISH_USERNAME')
|
||||
String pass = cred('ARTIFACTORY_PUBLISH_PASSWORD')
|
||||
if (user && pass) {
|
||||
push = true
|
||||
credentials {
|
||||
username = user
|
||||
password = pass
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user