PlatformApplicable to all products in Temenos Journey Manager.
GitLabGitLab is a web-based Git-repository manager with wiki and issue-tracking features, using an open-source license, developed by GitLab Inc. is a version control system supporting Continuous Integration. This article explains you how to store content GitLab using two distinct strategies: a minimalist source-only method, and a complete build environment method.
This tutorial assumes you have already done the following:
.gitignore file..gitignore file in the project to ignore all but the src/* folder in our project, providing the minimalist approach..gitignore file to add all files to GibLab, except build.properties, providing the complete approach.build.properties-TEMPLATE file, so the GitLab project contains a template for new build.properties files.cd to the CI Workspace folder, then type git init and click Enter to establish the current directory as a local Git repositorygit init
git remote add origin and type your Git project URLgit remote add origin <your Git project URL>
git pull origin master
git pull origin master
git add .
git add .
git commit -m "Initial commit"
git commit -m "Initial commit"
git push -u origin master. The local files that match the .gitignore rules have now been stored in the GitLab projectgit push -u origin master
The GitLab credentials should validate and the red errors disappear
H/2 * * * * in the Schedule text area to poll GitLab every 2 minutes and click Save.
cd "C:\Development\Jenkins\CI Workspace"
edit src\services\helloworld\service-help.html
git add .
git commit -m "Triggering Jenkins Build"
git push -u origin master
At this point, you will have a GitLab project populated only with the files you have created locally. It will not contain the Transact Fluent SDK files, because we ignored them with the rules we created in the .gitignore file.This minimalist method does save space in the GitLab repository, but it may not be ideal in terms of deploying to a new server. Any new server would need to have the Transact Fluent SDK installed on it before pulling the GItLab project.
We can convert the minimalist approach to a complete approach simply by changing the .gitignore file, adding additional files and committing to the GitLab project. Now, when the project is pulled from GitLab, the complete Transact Fluent SDK comes with it, so it can be deployed on a new server and it is ready to go.
We want to add all files from our local folders to GitLab, but we want to exclude the build.properties file, because it contains sensitive passwords.
.gitignore file, which should include /build.properties now.
git add .
git commit -m "Adding all files except build.properties"
git push -u origin master
build.properties. As we don't know what goes in the build.properties file, we should add a build.properties-TEMPLATE file that contains the default build.properties file from the Transact Fluent SDK. Extract the build.properties from the zipped Transact Fluent SDK file, and rename it to the build.properties-TEMPLATE.
git add .
git commit -m "Adding build.properties-TEMPLATE"
git push -u origin master
build.properties with the sensitive passwords, but it does have a build.properties-TEMPLATE file, so a new user can use it to construct their own build.properties file.Next, learn about Jenkins CI.