Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
2.9.0 Changes #2577
(Note: This issue is for preliminary feature documentation, and for discussing 2.9.0 changes.)
Passing data between steps (Data-capture plugins). Trello card
We've added this feature with a combination of several new pieces under the hood:
Log Filter plugins can be used to observe and modify the log output from indvidual steps in the workflow, or from all steps for a Job when applied as a global Log filter.
Built in LogFilter plugins:
Using Key Value Data filter plugin to capture data
The "Key Value Data" Log Filter plugin lets you can specify a regular expression to match against the log output, and will capture key/value pairs from
If you have a Node step, such as a command or script, the data will be captured and associated with the particular Node the command executed on. Later when you dereference the value, it will automatically use the value for the current node. If you want to specify a node you can use
In addition, you can collect all node values captured as
Inside inline scripts, the syntax is
Useful Stub plugin Steps
The "Stub" plugin bundled with Rundeck adds these new workflow step types:
A new plugin type "ContentConverterPlugin" allows output logs which have been marked as a certain content type to be rendered in the GUI in a nicer fashion.
For example, applying the "Render Formatted Data" LogFilter plugin to a step will mark some or all output from the step as being of a certain data type, such as JSON.
When it is marked as JSON, Rundeck can use a ContentConverterPlugin that knows how to parse JSON and render it as HTML to display the content
Content Converter Plugins will be applied automatically to any log data that is marked as having a supported data type. This means that as long as you
Built in Content Converter Plugins
Using Jobs across projects:
Project Passive Mode:
No Matched Nodes as Success:
Improved Time Zone support:
referenced this issue
Jun 22, 2017
FYI: download the preview 2.9.0 http://rundeck.org/news/2017/06/20/rundeck-2.9.0-beta1.html
I just installed the 2.9.0 preview to test a bit with the global log filters. This feature is a real life-saver but there are some small adjustments that would make it perfect.
Furthermore I took a small peak at your commited code and I saw code that would fetch the header but I have no clue how to tell rundeck that my first row should be used as header (?) maybe I'm missing something here!
This more a feature request but it should be a small thing to fix. It would be awesome to have a direct download link to the formatted file with the correct extension. So meaning if we format to csv then it would be cool to have an url next to the "Text, HTML Download" that is CSV for CSV or MD for markdown that would fetch the output with the correct file extension. If this is implemented you directly implement #1787
Thanks in advance!
@Ciberth thanks for the feedback!
If you could attach any sample output you have, e.g. the
For the HTML tables, you might try applying the bootstrap css e.g.
Maybe we should add css to apply a style refresh to anything within the log output, and use some standard formatting such as bordered tables.
The CSV behavior needs updating for a few things, including conforming to the rfc better, and handling those empty values better.
@gschueler thanks for the quick reply!
In addition to my previous request for the "file format export". I tried looking at the API to ask for a certain filetype when downloading the output but without much success. It would be cool to have something like
Another small feature request or rather a question since I didn't find anything in the configuration files or the documentation is the view options. By default Time, Node, Step and Ansi Color are enabled. Is there a way to change this default behaviour to disable the checks? It would be a nice little enhancement to be able to change this per job.
Anyway thanks again for the fast reply and the development on rundeck!