Skip to content

Commit

Permalink
add if statement so jenkins task isn't applied unless jenkins build s…
Browse files Browse the repository at this point in the history
…erver

is found
  • Loading branch information
dmodoomsirius committed Oct 26, 2015
1 parent 331a438 commit 5e0ec2c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/forge/jenkinsChangelog.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
if (System.getenv("BUILD_NUMBER") != null)
{
import net.minecraftforge.gradle.tasks.dev.ChangelogTask
import net.minecraftforge.gradle.common.Constants
import net.minecraftforge.gradle.delayed.*
Expand All @@ -20,4 +22,5 @@ task createChangelogJenkins(type: ChangelogTask) {
setTargetBuild({buildNumber.toString()});
setOutput(new DelayedFile(project, 'output/' + 'changelog' + '.txt'));
}
}
}

1 comment on commit 5e0ec2c

@dmodoomsirius
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will only be applied when it detects jenkins build number variable

Please sign in to comment.