The chat responses are generated using Generative AI technology for intuitive search and may not be entirely accurate. They are not intended as professional advice. For full details, including our use rights, privacy practices and potential export control restrictions, please refer to our Generative AI Service Privacy Information. As this is a test version, please let us know if something irritating comes up. Like you get recommended a chocolate fudge ice cream instead of an energy managing application. If that occurs, please use the feedback button in our contact form!
Skip to content

Package and upload

2612

This page covers the mechanics of getting an application onto a server: the archive layout Polarion accepts, the upload wizard, hash verification, updates and removal.

The ZIP layout

  • <identifier>.zip
    • <identifier>/
      • manifest.json
      • <rootDirectory>/ of view 1
        • index.html
        • assets/
          • …
      • <rootDirectory>/ of view 2
        • …
      • server-scripts/ only if the manifest declares endpoints
        • *.js

Checks performed by Polarion during upload, and the message you see when they fail:

CheckMessage
Exactly one top-level folder, manifest.json inside itApplication's zip structure is incorrect
manifest.json is valid JSON with the required fieldsApplication validation failed with details
Folder name equals identifierApplication's zip structure is incorrect
Each view's rootDirectory/document existsApplication validation failed
Each endpoint's script exists in server-scripts/Application validation failed

The ZIP file name itself should not matter; naming it after the identifier is a convention.

Building the ZIP

The examples use a Node script (scripts/package.mjs, listed in Your first application). Equivalent shell commands:

npm run build
rm -rf package && mkdir -p package/com.example.hello
cp manifest.json package/com.example.hello/
cp -R dist package/com.example.hello/hello
cp -R server-scripts package/com.example.hello/   # if present
(cd package && zip -r ../com.example.hello.zip com.example.hello -x '*.DS_Store')

On macOS, avoid Finder's Compress on the folder: it adds __MACOSX/ entries and resource-fork files that may fail validation. Use zip as above, or the Node script.

Uploading

  1. Global Administration → Applications → Upload.
  2. Choose the ZIP and click Next. Polarion reads the manifest and computes the SHA-2 hash.
  3. Review the summary. For a new identifier it reads You are going to INSTALL the following application; for an existing one, You are going to UPDATE with New Version and Current Version columns.
  4. Click Finish. A green bar confirms the upload; the tile appears or is refreshed.

Upload step 2 for a new application

Upload step 2 for an update, comparing both versions

The change is effective immediately: static files are served and server scripts are active without a restart. Users with an open view must reload the page.

Verifying the hash

The hash shown in step 3 is the SHA-2 digest of the ZIP file (128 hexadecimal digits, the SHA-512 variant). Compute it locally to confirm you are installing the file you built:

shasum -a 512 com.example.hello.zip     # macOS / Linux
certutil -hashfile com.example.hello.zip SHA512   # Windows

The dialog refers to it as the SHA-2 hash.

Properties and delete

Select a tile to enable the Properties and Delete buttons.

  • Properties shows identifier, version, title, publisher, manifest version and description.
  • Delete removes the application and its files immediately (a green bar confirms Application '<identifier>' was deleted). Configuration XML that references its views is not changed.

Versioning

Set applicationVersion to something you can trace back to a build (1.4.0, 2026.10.05, a git describe string). Polarion displays it but appears not to compare it; an update with the same or a lower version is accepted.

Automating uploads

Uploads can be scripted against the REST API with a personal access token when com.siemens.polarion.rest.enabled and com.siemens.polarion.rest.security.restApiToken.enabled are set. The endpoint and payload are part of the REST API definition of your server (/polarion/rest/v1/definition, search for applications). Interactive upload through the UI is the supported path in the 2612 preview; treat automation as something to validate against your server version.

Building in CI

The package is reproducible from a clean checkout. A minimal GitLab CI job that keeps the ZIP and its hash as artifacts:

.gitlab-ci.yml
package:
  image: node:22
  script:
    - npm ci
    - npm run package
    - shasum -a 512 *.zip > SHA512SUMS
  artifacts:
    paths: ['*.zip', SHA512SUMS]

If the SDK is installed from your server's URL, the runner needs HTTPS access to it (or vendor the tarball as the examples do).

Removing an application cleanly

  1. Remove the applicationView elements that reference its views from form layouts and Topics configurations.
  2. Tell users who bookmarked a table with ?sidebar=polarion-application.<identifier>.<viewId> that the sidebar goes away.
  3. Global Administration → Applications: select the tile, Delete. The files are removed immediately.

Checklist before every upload

  • npm run build passes with no TypeScript errors.
  • dist/index.html references ./assets/… (relative paths).
  • manifest.json lists every view and endpoint that the package contains.
  • applicationVersion bumped.
  • ZIP has a single top-level folder named after the identifier.
  • Hash recorded if your process requires it.
  • Tested as a user without administrator rights.