Pipelines for TIA Portal
CI/CD for TIA Portal
Treat PLC code like software: versioned in Git, tested automatically in the pipeline, compiled before rollout.
GitLab CI · Jenkins · GitHub Actions · Azure DevOps · JUnit XML
The Test Suite Editor of FB_ConveyorControl_Tests lists all 12 test cases of FB_ConveyorControl as rows. The new case Overload_ShortPeak_NoTrip gets a description, the input rMotorCurrent = 14.0 and two assertions picked from the operator list: bOverloadFault Is False and bMotorRun Is True. Run Case runs it against PLCSim Advanced and the case passes, so all 12 cases are green.
TIA Portal in the pipeline
Commit
Blocks and test suites live as plain text in Git, diffable and reviewable.
Runner
tia-test-runner runs the suites headless on the build server, without the TIA user interface.
PLCSIM Advanced
Tests run against a PLCSIM Advanced instance, reproducible and without hardware.
JUnit report
The pipeline shows the JUnit XML as test results, HTML reports are stored as artifacts.
CI/CD for TIA Portal means treating PLC code like software: versioned in Git, tested automatically in a pipeline and compiled before rollout. Instead of manual acceptance on every change, a pipeline guards every change against regressions automatically. That matters most once AI for PLC programming writes part of the code: the pipeline checks generated blocks exactly like hand-written ones.
What does it look like?
AnyAutomation Studio provides two building blocks: test suites are plain-text JSON files next to the project, diffable and reviewable in Git. The tia-test-runner command-line tool runs them headless on the build server and writes JUnit XML that GitLab CI, Jenkins and similar systems display directly. --rerun-affected runs only suites whose block changed.
A job in GitLab CI looks like this, for example:
unit-tests:
tags: [tia-windows]
script:
- tia-test-runner run --project "$CI_PROJECT_DIR\Plant.ap20" --plc PLC_1 --out-dir reports --ci-env-capture
artifacts:
when: always
paths:
- reports/
reports:
junit: reports/**/junit.xml
Besides JUnit XML, the runner writes standalone HTML reports and CSV data for trends. Studio can also generate the pipeline file for GitLab, GitHub Actions, Azure DevOps or Jenkins for you. Changed code is compiled against the real project before rollout, so errors show up in the pipeline instead of on the controller.
The end-to-end flow
The full value comes from the chain: AI generates → Openness imports → SCL unit tests verify → Git and CI/CD track every change. One-time acceptance becomes continuous quality assurance. Details in the unit testing documentation.
Frequently asked questions
What is CI/CD for TIA Portal?
CI/CD for TIA Portal means keeping PLC code versioned in Git, testing it automatically in a pipeline and compiling it before deploy: continuous integration and continuous delivery for automation projects.
Which CI systems are supported?
The runner produces JUnit XML and runs headless, so it works with GitLab CI, Jenkins and any pipeline that can run a command-line tool.
How do I integrate PLC tests into GitLab or Jenkins?
The tia-test-runner is called as a build step, runs the suites and returns JUnit XML that the pipeline shows as a test result. HTML reports can be stored as artifacts.
Can I version TIA projects in Git?
Yes. AnyAutomation Studio has built-in Git version control; test suites are plain-text JSON files versioned like any other code.
Does PLCSIM Advanced run in the pipeline?
Yes. Tests against PLCSIM Advanced run automatically, so the pipeline tests reproducibly without physical hardware.
Try it now
Set up your pipeline for TIA Portal
Try AnyAutomation Studio free for 30 days, no credit card. For TIA Portal V15-V21 and CODESYS 3.5.
Free account required: sign in with your email address and a code, then the download starts.
Questions? support@anyautomation.ch