I think it's a little clunky that my `deploy.xml` ...
# sdf
d
I think it's a little clunky that my
deploy.xml
needs to have both a
<files>
and
<objects>
. Sometimes I want to deploy one xor the other. My work around has been to include an empty folder:
<path>~/Objects/EmptyObjects/*</path>
😕
a
what do you mean?
I can deploy without files
t
@dbaghdanov I think you can now remove the <files> tag since 18.2 / 18.2.1.. I just learned that recently
d
heeeeey, look at that! thanks, that worked:
Copy code
<deploy>
    <files>
        <path>~/FileCabinet/SuiteScripts/some-script.js</path>
    </files>
</deploy>
this is what throws an error:
Copy code
<deploy>
    <files>
        <path>~/FileCabinet/SuiteScripts/some-script.js</path>
    </files>
    <objects>

    </objects>
</deploy>
Copy code
*** ERROR ***

Validation failed.

An error occurred during deploy file validation.
Details: The deploy file is invalid. The group must have at least 1 step : The group must have at least 1 step
---- Debugging information ----
message             : The group must have at least 1 step
cause-exception     : java.lang.RuntimeException
cause-message       : The group must have at least 1 step
class               : com.netledger.app.suiteapp.devframework.xml.container.XmlDeployFile
required-type       : com.netledger.app.suiteapp.devframework.xml.container.XmlDeployFile
converter-type      : com.netledger.app.suiteapp.devframework.xml.converter.XmlDeployFileConverter
path                : /deploy/objects
version             : 1.4.8
-------------------------------
File: ~/deploy.xml
a
Right
the system does not let you specify empty objects
d
and that makes sense, I thought that both files & objects were required. thanks all
a
👍