Slackbot
08/07/2023, 10:46 AMTom Koptel
08/07/2023, 10:57 AMproject
instance at task executio time for the task that supposed to support configuration cache.
If that is not an issue. Then try to configure the task at configuration time. doFirst
will postpone task configuration to the execution time .
task generateGitChangelog(type: se.bjurr.gitchangelog.plugin.gradle.GitChangelogTask) {
fromRepo = file("$projectDir")
ignoreCommitsWithoutIssue = false
ignoreCommitsIfMessageMatches = "^Merge.*|^Incrementing minor version.*|^Pull request #.*"
toRef = jiraIssuesToRef
fromRef = jiraIssuesFromRef
jiraEnabled = true
jiraUsername = jiraJenkinsUsername
jiraPassword = jiraJenkinsPassword
jiraIssuePattern = jiraIssuePatternRegexp
jiraServer = jiraServerUrl
file = file("${changelogRenderedOutputFileName}")
templateContent = file("${changelogTemplatePath}").getText('UTF-8')
}
Just try removing doFirst
.Pratiksha Salian
08/07/2023, 11:12 AMPratiksha Salian
08/07/2023, 11:12 AMVampire
08/07/2023, 11:42 AMVampire
08/07/2023, 11:42 AM--scan
with the failure or at least show the output with --stacktrace
to see exactly where it fails.Tom Koptel
08/07/2023, 11:49 AM@Input
annotation and Property<T>
API. I wonder if that can be connected to the issue we are experiencing here. @Vampire can this be connected to the mentioned issue?Vampire
08/07/2023, 11:50 AMPratiksha Salian
08/07/2023, 11:52 AMPratiksha Salian
08/07/2023, 11:52 AMPratiksha Salian
08/07/2023, 11:53 AMPratiksha Salian
08/07/2023, 11:53 AMPratiksha Salian
08/07/2023, 11:54 AMtask generateGitChangelog(type: se.bjurr.gitchangelog.plugin.gradle.GitChangelogTask) {
fromRepo = file("$projectDir")
ignoreCommitsWithoutIssue = false
ignoreCommitsIfMessageMatches = "^Merge.*|^Incrementing minor version.*|^Pull request #.*"
toRef = jiraIssuesToRef
fromRef = jiraIssuesFromRef
jiraEnabled = true
jiraUsername = jiraJenkinsUsername
jiraPassword = jiraJenkinsPassword
jiraIssuePattern = jiraIssuePatternRegexp
jiraServer = jiraServerUrl
file = file("${changelogRenderedOutputFileName}")
templateContent = file("${changelogTemplatePath}").getText('UTF-8')
}
Pratiksha Salian
08/07/2023, 11:57 AM