Skip to content

Commit

Permalink
JENKINS-33401 - Credentials Integration
Browse files Browse the repository at this point in the history
null check on credentials lookup
  • Loading branch information
prospero238 committed Sep 6, 2016
1 parent e31d3f6 commit 7c865b8
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -66,8 +66,10 @@ protected static void assembleFromProjectConfiguration(AbstractLiquibaseBuilder
StandardUsernamePasswordCredentials.class, build,
Lists.<DomainRequirement>newArrayList());

addPropertyIfDefined(properties, LiquibaseProperty.USERNAME, credentialById.getUsername(), environment);
addPropertyIfDefined(properties, LiquibaseProperty.PASSWORD, credentialById.getPassword().getPlainText(), environment);
if (credentialById!=null) {
addPropertyIfDefined(properties, LiquibaseProperty.USERNAME, credentialById.getUsername(), environment);
addPropertyIfDefined(properties, LiquibaseProperty.PASSWORD, credentialById.getPassword().getPlainText(), environment);
}
}


Expand Down

0 comments on commit 7c865b8

Please sign in to comment.