${CHANGES,showDependencies="true"} not working?

20 views
Skip to first unread message

John Lussmyer

unread,
Jun 28, 2017, 4:20:47 PM6/28/17
to Jenkins Users
Im trying to use the text-file-operations plugin to create a file that has the changes for the current build.
I've added the build step (Create/Update Text file) and set the content of the file to be:
Build: ${BUILD_NUMBER}
$
{CHANGES,showDependencies="true"}
-


The file gets created, the ${BUILD_NUMBER} gets properly substituted, but the CHANGES does not.
Any suggestions on what to change/try next?

Slide

unread,
Jun 28, 2017, 4:22:26 PM6/28/17
to Jenkins Users
BUILD_NUMBER is an environment variable, CHANGES is a token macro. Does the text-file-operations plugin use the token macro plugin to replace things?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/74e48663-b163-4212-9665-4cffd87933ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

John Lussmyer

unread,
Jun 28, 2017, 4:31:31 PM6/28/17
to Jenkins Users
On Wednesday, June 28, 2017 at 1:22:26 PM UTC-7, slide wrote:
BUILD_NUMBER is an environment variable, CHANGES is a token macro. Does the text-file-operations plugin use the token macro plugin to replace things?

Can't tell from the description if it uses the Token Macro Plugin or not.
Sigh, probably doesn't then.

Any suggestions for other techniques to get that information into a simple text file?

Slide

unread,
Jun 28, 2017, 4:36:50 PM6/28/17
to Jenkins Users
Looking at [1] it does not look like token-macro is a dependency, so it definitely does not. I'm not aware of another plugin that does what you want. You might be able to use a script plugin to do it.


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages