From 49e98196f652104d3471e5f89a20e8c03756d0bc Mon Sep 17 00:00:00 2001 From: Jan Moringen Date: Tue, 21 May 2019 10:16:47 +0200 Subject: [PATCH] Added console-ansi-color aspect in src/model/aspects/aspects.lisp fixes #25 * src/model/aspects/aspects.lisp (define-aspect console-ansi-color): new aspect; configure the console ANSI color plugin for Jenkins * change.sexp (Release 0.29): added enhancement entry --- changes.sexp | 5 ++++- src/model/aspects/aspects.lisp | 9 +++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/changes.sexp b/changes.sexp index e30ea070..277b1e82 100644 --- a/changes.sexp +++ b/changes.sexp @@ -22,7 +22,10 @@ find_program(OUTPUT_VAR NAME …) → nature: program distributions for which jobs are being generated.") (:enhancement - "The console timestamper plugin for Jenkins is now supported.")) + "The console timestamper plugin for Jenkins is now supported.") + + (:enhancement + "The console ANSI color plugin for Jenkins is now supported.")) (:release "0.28" "2019-04-15" diff --git a/src/model/aspects/aspects.lisp b/src/model/aspects/aspects.lisp index 26a719a8..4c0cc5bc 100644 --- a/src/model/aspects/aspects.lisp +++ b/src/model/aspects/aspects.lisp @@ -370,6 +370,15 @@ "Configures the console timestamper." (with-interface (build-wrappers job) (nil (build-wrapper/timestamper)))) +;;; ANSI color aspect + +(define-aspect (console-ansi-color :plugins ("ansicolor")) () + (((color-map "xterm") :type string + :documentation + "Name of the color map the plugin should use.")) + (with-interface (build-wrappers job) (nil (build-wrapper/ansi-color + :color-map color-map)))) + ;;; Slaves aspect ;; TODO separate slaves aspect for matrix-project jobs?