question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve pipeline enablement and making it optional

See original GitHub issue

Now using Jenkins pipelines is becoming the norm instead of the weird-use-case and we do need an improved way to enable the AnsiColorBuildWrapper.

Have a look at the Timestamper plugin which now supports the nice DSL syntax:

timestamps {
    // code goes here
    }

To make the usage even better I would like to be able to have some kind of condition: if ansi plugin is present enable it, or continue if not.

With these two small additions we could write much better Jenkins pipelines and we would avoid unpleasant surprises if it happens to have the plugin not installed. Build will continue, which is much better than having it broken because the ansicolor plugin was missing.

PS. Please mind that’s possible for the plugin to be broken at some point and that’s why is much better not to break continuity and continue to work without the feature. Optionally we could throw a warning message, but what matters is to avoid breakages.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
JeanMertzcommented, Oct 15, 2016

Quick question:

Why should I as a Jenkinsfile maintainer be concerned about enabling/disabling color output?

Shouldn’t this plugin simply be activated on the server-side, and “just work” for any pipelines running, with or without color output?

My frame of reference here is all the other hosted CI solutions out there (Travis, CircleCI, etc, etc) that have colouring “enabled by default”, I’ve never seen any ci-specific file in a GitHub project that explicitly enabled colouring, not even just “enable/disable for this project”, let alone “enable for this line”.

I’m sure I’m missing some technical context on why this is ill-adviced/difficult, but I’m looking at it from an end-user perspective.

1reaction
subos2008commented, Mar 15, 2017

@dblock yes, I think reading through it that the OP’s request is satisfied. There is also the request from @markhu that we have a way to enable this globally (which I am 100% in favour of) but that was already requested separately in [https://github.com/dblock/jenkins-ansicolor-plugin/issues/2]

Read more comments on GitHub >

github_iconTop Results From Across the Web

Improve Your Pipeline Generation Strategy - Gartner
Your pipeline generation strategy must foster collaboration between sales and marketing to increase pipeline volume and quality. Download this guide to:.
Read more >
5 Sales Enablement Assets to Help Fill Your Pipeline - PMG
Drive revenue growth with high-quality enablement assets that range from memorable elevator pitches and strategic battlecards to compelling ...
Read more >
Succeeding with pipeline management in complex B2B sales
It needs to be obvious to everyone involved that increasing sales effectiveness is not optional and management must become proponents for ...
Read more >
How to Improve a Sales Pipeline - Flockjay
Developing your sales pipeline is one of the most important ways you can increase revenue. Learn how with Flockjay.
Read more >
Accelerate sales pipeline: 10 trusted tactics from the experts
Sales enablement is a collaborative strategy that uses all your resources collectively to maximize engagement and improve buyer interactions. Both of which help ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found