more debug lines

Original commit: elastic/x-pack-elasticsearch@f653ce3822
This commit is contained in:
Colin Goodheart-Smithe 2016-12-08 13:05:29 +00:00
parent 9218cd4531
commit 2f3e5af046
2 changed files with 8 additions and 2 deletions

View File

@ -7,16 +7,22 @@ import org.elasticsearch.gradle.VersionProperties
import org.elastic.gradle.UploadS3Task
String envAwsAccessKey = System.env.AWS_ACCESS_KEY_ID
print 'BUILD - System.env.AWS_ACCESS_KEY_ID: ' + envAwsAccessKey + '\n'
if (envAwsAccessKey != null) {
print 'using access key from System.env.AWS_ACCESS_KEY_ID: ' + envAwsAccessKey + '\n'
project.ext.awsAccessKey = envAwsAccessKey
} else if (project.hasProperty("AWS_ACCESS_KEY_ID")) {
print 'using access key from gradle.properties: ' + AWS_ACCESS_KEY_ID + '\n'
project.ext.awsAccessKey = AWS_ACCESS_KEY_ID
}
String envAwsSecretKey = System.env.AWS_SECRET_ACCESS_KEY
print 'BUILD - System.env.AWS_SECRET_ACCESS_KEY: ' + envAwsSecretKey + '\n'
if (envAwsSecretKey != null) {
print 'using access key from System.env.AWS_SECRET_ACCESS_KEY: ' + envAwsSecretKey + '\n'
project.ext.awsSecretKey = envAwsSecretKey
} else if (project.hasProperty("AWS_SECRET_ACCESS_KEY")) {
print 'using secret key from gradle.properties: ' + AWS_SECRET_ACCESS_KEY + '\n'
project.ext.awsSecretKey = AWS_SECRET_ACCESS_KEY
}

View File

@ -51,8 +51,8 @@ class DownloadS3Task extends DefaultTask {
@TaskAction
public void downloadFromS3() {
print 'DownloadS3Task - AWS ACCESS KEY ID: ' + project.awsAccessKey
print 'DownloadS3Task - AWS SECRET ACCESS KEY: ' + project.awsSecretKey
print 'DownloadS3Task - AWS ACCESS KEY ID: ' + project.awsAccessKey + '\n'
print 'DownloadS3Task - AWS SECRET ACCESS KEY: ' + project.awsSecretKey + '\n'
AWSCredentials creds = new BasicAWSCredentials(project.awsAccessKey, project.awsSecretKey)
ClientConfiguration clientConfiguration = new ClientConfiguration();