Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different windows and linux in {{issues}} #32

Open
Acolasz opened this issue Oct 25, 2021 · 6 comments
Open

Different windows and linux in {{issues}} #32

Acolasz opened this issue Oct 25, 2021 · 6 comments

Comments

@Acolasz
Copy link

Acolasz commented Oct 25, 2021

``Hello!

First off all. I do like git changelog plugins (maven and jenkins). Thank you so much.

Have you encountered such a problem, that the maven plugin (1.78) duplicate the JIRA issues?
I write settings:
<configuration> <settingsFile>${project.build.directory}/config.json</settingsFile> <templateFile>${project.build.directory}/mustache.md</templateFile> <fromRef>release/1.0.0</fromRef> <!-- tag exits --> <toRef>HEAD</toRef> <file>${project.build.directory}/changlog.md</file> <jiraServer>${git.changelog.jira.server}</jiraServer> <jiraUsername>${git.changelog.jira.user}</jiraUsername> <jiraPassword>${git.changelog.jira.psw}</jiraPassword> <jiraIssuePattern>^(TST)-([0-9]+)\\b</jiraIssuePattern> </configuration>

config.json

`{
"fromRepo": ".",

"dateFormat": "YYYY.MM.dd HH:mm:ss",
"noIssueName": "Issue key missing or no valid issue keys from commit!",
"timeZone": "UTC"
}`

tempale file: mustache.md

| Type | Key | Summary | Description | | ------ | ------ | ------ | ------ | {{#tags}} {{#issues}} {{#hasIssue}} {{#hasLink}} | **{{type}}** | [{{issue}}]({{link}}) | {{title}} | {{description}} | {{/hasLink}} {{/hasIssue}} {{/issues}} {{/tags}}

windows result:

| Type | Key | Summary | Description | | ------ | ------ | ------ | ------ | | **Bug** | [TST-2](http://jira.com/browse/TST-2) | test2 | Description2 | | **Story** | [TST-1](http://jira.com/browse/TST-1) | test1 | Description1 |

ubuntu result:

| Type | Key | Summary | Description | | ------ | ------ | ------ | ------ | | **Bug** | [TST-2](http://jira.com/browse/TST-2) | test2 | Description2 | | **Bug** | [TST-2](http://jira.com/browse/TST-2) | test2 | Description2 | | **Story** | [TST-1](http://jira.com/browse/TST-1) | test1 | Description1 | | **Story** | [TST-1](http://jira.com/browse/TST-1) | test1 | Description1 |

git log

`commit a0babb6073c30d2965bf33b8e97868e0bd55f24f
Author: Olivér [email protected]
Date: Mon Oct 25 17:06:25 2021 +0200

TST-2 testing in jenkins build

commit 61adc3beeb54d9e178e9f56463f2dae8443b96f0
Author: Olivér [email protected]
Date: Fri Oct 22 15:18:52 2021 +0200

create releasenotes

commit ea06d65a0b707d664dd5c77019f7c2d0c90b4843
Author: Olivér [email protected]
Date: Fri Oct 22 15:04:51 2021 +0200

empty commit

commit 6141796c98ff34662d57652e6f81b05b568e1d2d
Author: Olivér [email protected]
Date: Fri Oct 22 14:57:32 2021 +0200

TST-2 empty commit

commit d39a8180aa99cb105eb7eb148813a3d34488e42d
Author: Olivér [email protected]
Date: Thu Oct 21 15:15:49 2021 +0200

TST-1 empty commit

commit 8e8ee08940f3df76aced52d4332a9b491e4d24f1
Author: Olivér [email protected]
Date: Thu Oct 21 14:57:44 2021 +0200

TST-1 empty commit

`

Please help me! I dont know, that I am wrong or this is how it has to work.

Thank you so much!

@tomasbjerre
Copy link
Owner

Can you repeat this in an open repository, perhaps on Github?

@Acolasz
Copy link
Author

Acolasz commented Oct 27, 2021

Yes i do, but i dont understand what is open repository? Could you send a link?

@tomasbjerre
Copy link
Owner

A public repository. That I can access.

@Acolasz
Copy link
Author

Acolasz commented Oct 27, 2021

you may think https://github.com/Acolasz/git-changelog-maven-plugin.git. Sorry, if not

@tomasbjerre
Copy link
Owner

@Acolasz
Copy link
Author

Acolasz commented Nov 25, 2021

Hello tomasbjerre!

I am really sorry, but I do not share those repo, when I found bug. I tried to make a new repo, but the your plugin works well. :(
I tried to debug this plugin with mvnDebug, but I have to know better with plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants