Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnecessary deployables validation in CargoStopLocal #99

Open
kennymacleod opened this issue Aug 26, 2014 · 3 comments
Open

Unnecessary deployables validation in CargoStopLocal #99

kennymacleod opened this issue Aug 26, 2014 · 3 comments

Comments

@kennymacleod
Copy link

When I try to execute a CargoStopLocal task, the build fails with "No deployables assigned!". This error is thrown by AbstractCargoContainerTask. This seems wrong - why should I need to declare deployables for CargoStopLocal task? Shouldn't that check be pushed down into the CargoStart[..] tasks instead?

I'm using the cargo-base plugin, and defining my own tomcat start/stop tasks using the plugin's task types.

More generally, it's hard to tell what configuration is actually necessary for a CargoStopLocal task. The examples all seem to assume the shared config used for both start and stop tasks, and the code seems to make many of the same assumptions (shared validation logic, etc). What's the bare minimum CargoStopLocal task config required to just shut the container down?

@bmuschko
Copy link
Owner

The input properties are mainly driven through the Cargo Ant tasks. The required Ant attributes are not documented in Cargo per action.

I agree. Stopping a container shouldn't require deployable artifacts. It would make sense to separate the logic. Would you be interested in providing the change as a pull request?

@jutoft
Copy link

jutoft commented Jan 2, 2019

This should be fixable if the issues mentioned here is fixed:
#147 (comment)

@jutoft
Copy link

jutoft commented Jan 21, 2019

#181 should fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants