Testing for secrets to be present

This commit is contained in:
Speiger 2021-12-27 20:04:50 +01:00
parent bc75a5cd97
commit af62394651
1 changed files with 5 additions and 2 deletions

View File

@ -88,7 +88,10 @@ test {
uploadArchives { uploadArchives {
Properties props = new Properties() Properties props = new Properties()
props.load(new FileInputStream("$buildDir/credentials.properties")) if(file("$buildDir/credentials.properties").exists())
{
props.load(new FileInputStream("$buildDir/credentials.properties"))
}
repositories.mavenDeployer { repositories.mavenDeployer {
repository(url: 'https://maven.speiger.com/repository/main') { repository(url: 'https://maven.speiger.com/repository/main') {
authentication(userName: props.mavenUser, password: props.mavenPassword) authentication(userName: props.mavenUser, password: props.mavenPassword)