Removed test, added example
This commit is contained in:
27
bin/test.xml
27
bin/test.xml
@@ -1,27 +0,0 @@
|
|||||||
<execution>
|
|
||||||
<environment>
|
|
||||||
<variable name="ENV_VAR">Variable Contents</variable>
|
|
||||||
</environment>
|
|
||||||
<!--Empty clone clones the whole workspace?-->
|
|
||||||
<clone />
|
|
||||||
<bat>
|
|
||||||
echo this could be a whole batch script or just one command
|
|
||||||
</bat>
|
|
||||||
<py>
|
|
||||||
print("this could be a whole python script or just one call")
|
|
||||||
</py>
|
|
||||||
<sh which="bash">
|
|
||||||
echo "this could be a whole sh script or just one command"
|
|
||||||
</sh>
|
|
||||||
<ps>
|
|
||||||
echo "this could be a whole powershell script or just one command"
|
|
||||||
</ps>
|
|
||||||
<artifacts>
|
|
||||||
<!--Mode could be raw copy or zip?-->
|
|
||||||
<artifact mode="copy">
|
|
||||||
<from>dist/*</from>
|
|
||||||
<!--Empty clone clones the whole workspace?-->
|
|
||||||
<to>dist/</to>
|
|
||||||
</artifact>
|
|
||||||
</artifacts>
|
|
||||||
</execution>
|
|
||||||
29
example.xml
Normal file
29
example.xml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
<execution>
|
||||||
|
<environment>
|
||||||
|
<variable name="ENV_VAR">Variable Contents</variable>
|
||||||
|
</environment>
|
||||||
|
<!--Empty clone clones the whole workspace-->
|
||||||
|
<!--TODO Add <exclude> or add attribute 'mode' for selecting between blacklist or whitelist, in which <include> would be used-->
|
||||||
|
<!--I.E. blacklisting any directory matching ".git"-->
|
||||||
|
<clone />
|
||||||
|
<bat>
|
||||||
|
echo this could be a whole batch script or just one command
|
||||||
|
</bat>
|
||||||
|
<py>
|
||||||
|
print("this could be a whole python script or just one call")
|
||||||
|
</py>
|
||||||
|
<sh which="bash">
|
||||||
|
echo "this could be a whole sh script or just one command"
|
||||||
|
</sh>
|
||||||
|
<ps>
|
||||||
|
echo "this could be a whole powershell script or just one command"
|
||||||
|
</ps>
|
||||||
|
<artifacts>
|
||||||
|
<workspace>
|
||||||
|
<file>a/single/file</file>
|
||||||
|
<files resolver="regex">^a\/file\/with\/regex.*$</files>
|
||||||
|
<!--Not yet supported, will be default (resolver not specified)-->
|
||||||
|
<files resolver="wildcard">a/*/bunch/**/of/files.*</files>
|
||||||
|
</workspace>
|
||||||
|
</artifacts>
|
||||||
|
</execution>
|
||||||
27
src/test.xml
27
src/test.xml
@@ -1,27 +0,0 @@
|
|||||||
<execution>
|
|
||||||
<environment>
|
|
||||||
<variable name="ENV_VAR">Variable Contents</variable>
|
|
||||||
</environment>
|
|
||||||
<!--Empty clone clones the whole workspace?-->
|
|
||||||
<clone />
|
|
||||||
<bat>
|
|
||||||
echo this could be a whole batch script or just one command
|
|
||||||
</bat>
|
|
||||||
<py>
|
|
||||||
print("this could be a whole python script or just one call")
|
|
||||||
</py>
|
|
||||||
<sh which="bash">
|
|
||||||
echo "this could be a whole sh script or just one command"
|
|
||||||
</sh>
|
|
||||||
<ps>
|
|
||||||
echo "this could be a whole powershell script or just one command"
|
|
||||||
</ps>
|
|
||||||
<artifacts>
|
|
||||||
<!--Mode could be raw copy or zip?-->
|
|
||||||
<artifact mode="copy">
|
|
||||||
<from>dist/*</from>
|
|
||||||
<!--Empty clone clones the whole workspace?-->
|
|
||||||
<to>dist/</to>
|
|
||||||
</artifact>
|
|
||||||
</artifacts>
|
|
||||||
</execution>
|
|
||||||
Reference in New Issue
Block a user