Skip to content

Commit

Permalink
Merge pull request #4102 from MDeLuise/improve-PackageDownloadRequest…
Browse files Browse the repository at this point in the history
…Example

✨ [Jobs] Add username/password in PackageDownloadRequest example for `Package Download/Install` step
  • Loading branch information
Coduz authored Sep 10, 2024
2 parents 4e47529 + db3e50f commit b0f10d9
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2019, 2022 Eurotech and/or its affiliates and others
This program and the accompanying materials are made
available under the terms of the Eclipse Public License 2.0
which is available at https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
Eurotech - initial API and implementation
-->
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd">

<include relativeToChangelogFile="true" file="./packages_job_step_definition_property_update_example_field.xml"/>

</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2019, 2022 Eurotech and/or its affiliates and others
This program and the accompanying materials are made
available under the terms of the Eclipse Public License 2.0
which is available at https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
Eurotech - initial API and implementation
-->
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd"
logicalFilePath="KapuaDB/packages_job_step_definition_property_update_example_field.xml">

<include relativeToChangelogFile="true" file="../common-properties.xml" />

<changeSet id="packages_job_step_definition_property_update-1.2.0" author="eurotech">
<update tableName="job_job_step_definition_properties">
<column name="example_value" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;
&lt;downloadRequest&gt;&#10;
&lt;uri&gt;http://download.eclipse.org/kura/releases/3.2.0/org.eclipse.kura.demo.heater_1.0.300.dp&lt;/uri&gt;&#10;
&lt;name&gt;heater&lt;/name&gt;&#10;
&lt;version&gt;1.0.300&lt;/version&gt;&#10;
&lt;install&gt;true&lt;/install&gt;&#10;
&lt;!-- &lt;username&gt;&lt;/username&gt;&#10;
&lt;password&gt;&lt;/password&gt; --&gt;&#10;
&lt;/downloadRequest&gt;"/>
<where>name = 'packageDownloadRequest'</where>
</update>

<update tableName="job_job_step_definition_properties">
<column name="example_value" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;
&lt;uninstallRequest&gt;&#10;
&lt;name&gt;heater&lt;/name&gt;&#10;
&lt;version&gt;1.0.300&lt;/version&gt;&#10;
&lt;reboot&gt;true&lt;/reboot&gt;&#10;
&lt;rebootDelay&gt;30000&lt;/rebootDelay&gt;&#10;
&lt;/uninstallRequest&gt;"/>
<where>name = 'packageUninstallRequest'</where>
</update>
</changeSet>
</databaseChangeLog>
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
<include relativeToChangelogFile="true" file="./0.3.0/changelog-packages-job-0.3.0.xml"/>
<include relativeToChangelogFile="true" file="./1.0.0/changelog-packages-job-1.0.0.xml"/>
<include relativeToChangelogFile="true" file="./1.0.4/changelog-packages-job-1.0.4.xml"/>
<include relativeToChangelogFile="true" file="./2.0.0/changelog-packages-job-2.0.0.post.xml"/>

</databaseChangeLog>

0 comments on commit b0f10d9

Please sign in to comment.