Skip to main content
Version: 10.3.2

Deploy model

After creating an AutoML project from an Archetype, you can deploy it to a Control Tower instance, even without training.

Use Asset Bundle

A project created from an AutoML Archetype already includes bundle-maven-plugin. You can use the tool to automate the packing of Asset Bundles and building of RESTful POST requests to deploy the bundles to Control Tower.

The Maven plugin is preconfigured in the pom.xml file of the package module as shown below:

<plugin>
<groupId>com.workfusion.odf</groupId>
<artifactId>bundle-maven-plugin</artifactId>
<version>${bundle-maven-plugin.version}</version>
<configuration>
<server>
<id>${workfusion.server.id}</id>
<url>${workfusion.environment.url}</url>
</server>
<metaInfoFile>src/main/resources/meta-info.json</metaInfoFile>
<bundle>target/${project.build.finalName}.zip</bundle>
</configuration>
</plugin>

For more information about bundle-maven-plugin, refer to Maven plugins.

Configure access to Control Tower

Before publishing an Asset Bundle with the plugin, configure Control Tower settings. For that, in your project generated with AutoML Archetype, perform the following actions:

  1. Specify the Control Tower URL where the Asset Bundles are to be published. For that, modify the project's root pom.xml:

    <profiles>
    <profile>
    <id>remote</id>
    <activation>
    <activeByDefault>true</activeByDefault>
    </activation>
    <properties>
    <workfusion.server.id>remote-control-tower</workfusion.server.id>
    <workfusion.environment.url>https://instance.workfusion.com</workfusion.environment.url>
    <package.assembly.descriptor>package-remote.xml</package.assembly.descriptor>
    </properties>
    </profile>
    </profiles>
  2. Specify the Control Tower user credentials to be applied. Modify the USER_HOME/.m2/settings.xml file as shown below. The role set up for the user must have the Export/Import and Advanced Package Import permissions in Control Tower. For details, refer to the Manage Control Tower roles and permissions topic.

    <!-- Control Tower user credentials -->  
    <server>
    <id>remote</id>
    <username>username_value</username>
    <password>password_value</password>
    </server>
info

The id value in settings.xml must be the same as the profile configuration id value in the root pom.xml.

Deploy Asset Bundle to remote Control Tower

To deploy an Asset Bundle to a remote Control Tower, follow the instructions below:

  1. Run mvn clean package to build a project. The command creates a bundle packed as a zip archive in the [ARTIFACT]-package/target directory. The build is completed with the [INFO] BUILD SUCCESS message.
  2. To import the resulting bundle to Control Tower, choose one of the following options:
    • Maven: Go to the [ARTIFACT]-package module folder and run mvn bundle:import from it. The operation is completed with the [INFO] BUILD SUCCESS message.
    • AutoML interface in CT: Take the zip archive from the [ARTIFACT]-package/target directory and import it as detailed in the Manage models topic.

Check deployment

To check whether the Asset Bundle deployment is successful, sign in to Control Tower, navigate to AutoML > Models or Pipelines, and check the list of available models.

troubleshooting

For troubleshooting tips, refer to Troubleshoot AutoML model import issues.