mirror of
https://github.com/afollestad/nock-nock.git
synced 2025-08-09 01:18:39 +00:00
Add default Fabric props that should fix CI
This commit is contained in:
parent
571e7ebff3
commit
f86ccbbe0c
1 changed files with 2 additions and 5 deletions
|
@ -1,11 +1,11 @@
|
||||||
apply plugin: 'io.fabric'
|
apply plugin: 'io.fabric'
|
||||||
|
|
||||||
ext.getFabricApiKey = {
|
ext.getFabricApiKey = {
|
||||||
return System.getenv('FABRIC_APIKEY') ?: "0"
|
return System.getenv('FABRIC_APIKEY') ?: "xxxe76c4xxxx97e8cxxxx0135e9d46f5a2xxx"
|
||||||
}
|
}
|
||||||
|
|
||||||
ext.getFabricApiSecret = {
|
ext.getFabricApiSecret = {
|
||||||
return System.getenv('FABRIC_APISECRET') ?: "0"
|
return System.getenv('FABRIC_APISECRET') ?: "xx68f6074dxxxxxc11dxxx97c172e8ebf0"
|
||||||
}
|
}
|
||||||
|
|
||||||
def buildFabricProperties() {
|
def buildFabricProperties() {
|
||||||
|
@ -13,9 +13,6 @@ def buildFabricProperties() {
|
||||||
def apiSecret = getFabricApiSecret()
|
def apiSecret = getFabricApiSecret()
|
||||||
def apiKey = getFabricApiKey()
|
def apiKey = getFabricApiKey()
|
||||||
|
|
||||||
if (apiSecret == "0" || apiKey == "0") {
|
|
||||||
logger.warn("API key and/or secret env variables not found, defaulting to 0.")
|
|
||||||
}
|
|
||||||
if (propertiesFile.exists()) {
|
if (propertiesFile.exists()) {
|
||||||
propertiesFile.delete()
|
propertiesFile.delete()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue