-
Notifications
You must be signed in to change notification settings - Fork 17
devon4j pl
This template will configure your PL instance to have a 'ready to use' devon4j template. It can be used as a starting point for your Java projects.
This includes CICD files for a devonfw technology stack with configuration for:
-
docker deployment
-
pushing artifacts to nexus3
To be able to run Jenkins devon4j job under ProductionLine you need to configure below settings in Jenkins and Gitlab
-
Jenkins
-
Add Jenkins Shared Library using documentation https://github.com/devonfw/production-line-shared-lib
-
Install required plugins:
HTTP Request Plugin
Allure Jenkins Plugin
NodeJS Plugin
Jobs DSL Plugin -
In Jenkins Global Tool Configuration configure Allure Commandline and Maven like
-
-
Gitlab
-
Generate User Private Token
Go to your Profile in Gitlab
-
Next click on the pen icon
On the left menu choose Access Tokens and put token name and check fields like below
Click "Create personal access token", you should receive notification about created token and token string. Copy the token string.
The GitLab API user needs to have API access and the rights to create a new group. To set this permission follow the next steps:
-
Enter the Admin control panel
-
Select 'Users'
-
Select the user(s) in question and click 'Edit'
-
Scroll down to 'Access' and enable 'Can Create Group'
-
Create new Jenkins Pipeline Job
-
In job configuration check "This project is parametrized", choose "String parameter and provide
Name: GITLAB_USER_PRIVATE_TOKEN
Default Value: <GITLAB_TOKEN_STRING_YOU_JUST_CREATED>
Name: USERNAME
Default Value: <YOUR_LAM_CORP_ID>
-
Add the template
Scrool down to the Pipeline section, choose "Pipeline script from SCM, configure like below: -
devon4j-pl/Jenkinsfile
-
Save job configuration
-
-
devonfw Technologies Templates
-
Utility Templates
-
MrChecker
-
Samples
-