Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit eb7b148

Browse files
steveworleygrasmash
authored andcommitted
Prompt for deploy properties (#434)
Adds property prompts so users don't have to remember the syntax for passing options to `blt deploy`. This still allows for properties to be passed in via the `-D` option (so CI can still deploy without input) but for local deploys a user doesn't need to add additional options. The if check needs to remain as the `propertyprompt` unless a default value is added as the target allows you to skip entering a value.
1 parent 3724aff commit eb7b148

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

phing/tasks/deploy.xml

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<project name="deploy" default="deploy">
22

33
<target name="deploy" description="Builds separate artifact and pushes to git.remotes defined project.yml.">
4+
5+
<!-- Prompt for user input -->
6+
<propertyprompt propertyName="deploy.commitMsg" useExistingValue="true" promptText="Enter a valid commit message" promptCharacter=":" />
7+
<propertyprompt propertyName="deploy.branch" useExistingValue="true" promptText="Enter a deploy branch" promptCharacter=":" />
48

59
<!-- Check necessary runtime parameters. -->
610
<if>

0 commit comments

Comments
 (0)