Package and upload¶
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
- <identifier>/
Checks performed by Polarion during upload, and the message you see when they fail:
| Check | Message |
|---|---|
Exactly one top-level folder, manifest.json inside it | Application's zip structure is incorrect |
manifest.json is valid JSON with the required fields | Application validation failed with details |
Folder name equals identifier | Application's zip structure is incorrect |
Each view's rootDirectory/document exists | Application 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¶
- Global Administration → Applications → Upload.
- Choose the ZIP and click Next. Polarion reads the manifest and computes the SHA-2 hash.
- 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.
- Click Finish. A green bar confirms the upload; the tile appears or is refreshed.
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:
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¶
- Remove the
applicationViewelements that reference its views from form layouts and Topics configurations. - Tell users who bookmarked a table with
?sidebar=polarion-application.<identifier>.<viewId>that the sidebar goes away. - Global Administration → Applications: select the tile, Delete. The files are removed immediately.
Checklist before every upload¶
-
npm run buildpasses with no TypeScript errors. -
dist/index.htmlreferences./assets/…(relative paths). -
manifest.jsonlists every view and endpoint that the package contains. -
applicationVersionbumped. - 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.

