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

ERROR: Failed to insert changelog into the environment: c != java.lang.String #2

Open
samliddicott opened this issue Mar 7, 2018 · 3 comments

Comments

@samliddicott
Copy link

I built with mvn verify, installed the plugin using the "advanced" tab of the plugin manager.

The build runs, but the consoletext shows:

ERROR: Failed to insert changelog into the environment: c != java.lang.String

I'm using Jenkins 2.89.4, and my project uses the "Gerrit Repo" SCM plugin

@samliddicott
Copy link
Author

samliddicott commented Mar 7, 2018

My entry format was (2 lines):

%4$tc %1$s
(%2$s) %3$s

My item format was:

%s %s

My date format was blank

@samliddicott
Copy link
Author

The problem was with the tc format for date, so instead I moved to use %s for the date, and filled in a date format.

So although %tc appeared to work in the configuration screen, showing a good date, it fails at runtime.

@samliddicott
Copy link
Author

samliddicott commented Mar 7, 2018

Hmmm, but the actual date is showing up like this now:

SCM_CHANGELOG=1969-12-31 at 15:59:59 PST........

It seems that although placeholder indexes like %2$s work in the configuration, they don't work at runtime.

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

1 participant