Welcome to QOps (Qlik Operations), a tool that helps to automate the development and deployment process of Qlik-based applications.
This brief tutorial will teach how to separate a source code of Qlik Applications from the data and how to build an automated pipeline based on CI/CD concept.
QOps has 5 main commands that allow working with Qlik applications. All these commands work recursively with all subfolders starting with the current folder. To limit the amount of applications processed QOps has flexible filter options. Global filtering settings may be configured with qops-setfilter command. Alternatively, the -Filter parameter may be used inside each command call, which overrides global settings.
To get started with QOps please check current Settings, which may be printed out with qops-showdefault command.
Source Code Extraction
To extract the source code from Qlik Application, QOps has qops-prepare command. This command extracts sources from Qlik applications selected. Extracted Sources will be saved into -prj, -variables and -reduce folders, which name start within the application name.
QOps builds Qlik Applications based on the sources extracted previously. For this qops-build command is used.
Integration with Git allows to use QOps for committing, pushing and pulling changes made in Qlik Applications to and from local or remote repositories. Following commands are getting used for this.
- qops-commit refreshes sources and commits them in the specified branch of the local Git repository.
- qops-push encapsulates both qops-prepare and qops-commit inside. Once all applications are processed, QOps makes push to the remote repository.
- qops-pull retrieves source codes from the remote repository and then calls qops-build method for them.
Encapsulation of the qops-prepare and qops-build methods may be eliminated with -NoPrepare or -NoBuild flags.
Git connects to Git Providers using the SSH or HTTP protocols for secure communication. SSH connection ([email protected]:git.user/remoterepo.git) requires SSH key pair generation and public key adding to the Server. HTTP connection (http://192.168.1.100/git.user/remoterepo.git) will ask for Username and Password and will store it in Windows Credential Manager.
QOps receives commands in a batch mode also from installed and configured CI/CD runners. Select appropriate remote repository service (GitLab, GitHub), install and configure CI/CD runner(s) provided. See the following instructions steps for that (GitLab Runners , GitHub Actions).
Include YAML script into the repository with needed steps of QOps configuration, QOps commands for application building and publishing. In this way, an automated pipeline with steps of source fetching, application build and publishing on success will get.