Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…o expand var during conditional
  • Loading branch information
Brantone committed Dec 15, 2014
1 parent d5e5298 commit 51c211e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/java/hockeyapp/HockeyappRecorder.java
Expand Up @@ -207,13 +207,12 @@ private boolean performForApplication(AbstractBuild<?, ?> build, Launcher launch

if (application.releaseNotesMethod != null) {
createReleaseNotes(build, entity, listener, tempDir, vars, application);

}


entity.addPart("ipa", fileBody);

if (application.dsymPath != null) {
if (vars.expand(application.dsymPath) != null) {
FilePath remoteDsymFiles[] = remoteWorkspace.list(vars.expand(application.dsymPath));
// Take the first one that matches the pattern
if (remoteDsymFiles.length == 0) {
Expand All @@ -226,7 +225,7 @@ private boolean performForApplication(AbstractBuild<?, ?> build, Launcher launch
entity.addPart("dsym", dsymFileBody);
}

if (application.libsPath != null) {
if (vars.expand(application.libsPath) != null) {
FilePath remoteLibsFiles[] = remoteWorkspace.list(vars.expand(application.libsPath));
// Take the first one that matches the pattern
if (remoteLibsFiles.length == 0) {
Expand All @@ -239,7 +238,7 @@ private boolean performForApplication(AbstractBuild<?, ?> build, Launcher launch
entity.addPart("libs", libsFileBody);
}

if (application.tags != null && application.tags.length() > 0)
if (vars.expand(application.tags) != null && application.tags.length() > 0)
entity.addPart("tags", new StringBody(vars.expand(application.tags)));
entity.addPart("notify", new StringBody(application.notifyTeam ? "1" : "0"));
entity.addPart("status",
Expand Down

0 comments on commit 51c211e

Please sign in to comment.