diff --git a/src/main/java/io/jenkins/plugins/artifact_manager_jclouds/s3/S3BlobStore.java b/src/main/java/io/jenkins/plugins/artifact_manager_jclouds/s3/S3BlobStore.java index d48d3453..88f90871 100644 --- a/src/main/java/io/jenkins/plugins/artifact_manager_jclouds/s3/S3BlobStore.java +++ b/src/main/java/io/jenkins/plugins/artifact_manager_jclouds/s3/S3BlobStore.java @@ -157,6 +157,9 @@ private Supplier getCredentialsSupplier() throws IOException { if (getConfiguration().getDisableSessionToken()) { AmazonWebServicesCredentials awsCredentials = CredentialsAwsGlobalConfiguration.get().getCredentials(); + if (awsCredentials == null) { + throw new IOException("No static AWS credentials found"); + } accessKeyId = awsCredentials.getCredentials().getAWSAccessKeyId(); secretKey = awsCredentials.getCredentials().getAWSSecretKey(); sessionToken = "";