-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added target parameter in protocol src/deployment/*.lisp
* src/deployment/conditions.lisp (deployment-condition::target): new slot; stores target of deployment (deployment-error): adapted report (project-deployment-error): likewise * src/deployment/protocol.lisp (deploy): added target parameter (deploy-dependencies): likewise (deploy :around t t): added target parameter; pass target to signaled condition (deploy-dependencies :around t t): likewise (define-service target): new service; for deployment targets (make-target): new function; helper for instantiating the target service * src/deployment/defaults.lisp (deploy distribution t): target parameter; pass to nested `deploy' call (deploy :around version t): similar (deploy version t): similar * src/deployment/jenkins/job.lisp (deploy distribution target): removed :around qualifier; added target parameter (deploy job target): similar (deploy-dependencies job target): similar (maybe-delete-other-jobs): new function; delete jobs according to settings in target argument * src/deployment/jenkins/target.lisp: new file; contains target class for jenkins deployment * src/deployment/package.lisp (package build-generator.deployment): added exported symbols target and make-target * src/commands/functions-deploy.lisp (configure-orchestration): accept target parameter, pass to `deploy' (configure-distribution): similar (configure-distributions): similar * src/commands/command-generate.lisp (command-execute generate): construct target instance, pass to `generate-deploy' (generate-deploy): accept target argument; pass to `deploy' and `maybe-delete-other-jobs' * build-generator.asd (system build-generator): added file src/deployment/jenkins/target.lisp to module "deployment-jenkins"
- Loading branch information
Showing
9 changed files
with
106 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
;;;; target.lisp --- Deployment target for Jenkins. | ||
;;;; | ||
;;;; Copyright (C) 2018, 2019 Jan Moringen | ||
;;;; | ||
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de> | ||
|
||
(cl:in-package #:build-generator.deployment.jenkins) | ||
|
||
(defclass target () | ||
((%delete-other? :initarg :delete-other? | ||
:reader delete-other?) | ||
(%delete-other-pattern :initarg :delete-other-pattern | ||
:reader delete-other-pattern))) | ||
|
||
(service-provider:register-provider/class | ||
'deploy:target :jenkins :class 'target) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters