Skip to content

Commit

Permalink
Added console-ansi-color aspect in src/model/aspects/aspects.lisp
Browse files Browse the repository at this point in the history
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
  • Loading branch information
scymtym committed May 21, 2019
1 parent 837def9 commit 49e9819
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion changes.sexp
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
9 changes: 9 additions & 0 deletions src/model/aspects/aspects.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 49e9819

Please sign in to comment.