In order to find out Jenkins username, you need a plugin user build vars Go to Jenkins settings Section "Manage Plugins" Go to the "Available" tab and specify "user build vars" in the search. Install it. An example of using a plugin from Pipeline: The module also has the following variables: … Continue reading "Jenkins – Username"
For a parameterized build with branch selection, you will need a plugin Active Choices Go to Jenkins settings Section "Manage Plugins" Go to the "Available" tab and specify "Active Choice" in the search. Install it. Create a "New Item" – "Pipeline", indicate that it will be a parameterized project, and add the … Continue reading "Jenkins – Active Choice: Git branch"
By default, Jenkins uses your browser’s settings language. In order to force change it, you can use the Locale plugin Go to Jenkins settings Section "Manage Plugins" Go to the "Available" tab and specify "Locale" in the search. Install it. And back to Jenkins settings, tab "Configure System" Find the … Continue reading "Jenkins – Change default language"
Check if the value of the variable "GIT_COMMIT_ID" is set, if so, then do a checkout by the hash of the commit, if not, then do a checkout by the name of the branch. The variable "GIT_BRANCH_NAME" is taken from the Active Choice parameter. Jenkinsfile:
If a variable is used in Jenkins Pipeline that is created on the basis of a Webhook or etc, then a task will fail with a manual start. To avoid this, you can add a check for the existence of a variable and set its value. In this example, the presence of the … Continue reading "Jenkins – Check for the existence of a variable"
Install Java OpenJDK, as it is a dependency for Jenkins. The latest versions of Jenkins are compatible with version 11, so let’s install it. To add the Jenkins repository, you will need the "wget" utility, if it is not installed, then install: Add the repository and import its key: Install Jenkins: … Continue reading "CentOS 7 – Jenkins install"
An example of a pipeline for working with the plugin for kubernetis. We build the maven project, create a docker image with the received artifact and push it into the docker image storage. Pipeline: Dockerfile – already created in the pipeline itself. envVar – taken from the secret of kubernetes
As it turned out, CodeBuild does not have a built-in incremental variable for the build number, as in Jenkins, for example. The solution was found on medium.com To add the build number you will need the following services: AWS SSM (Systems Manager Parameter Store) AWS Lambda AWS CloudWatch AWS IAM Create Parameter Store Go … Continue reading "AWS – CodeBuild: Add an incremental build number"
In this example, we will consider creating a repository in CodeCommit and building a simple Docker image using CodeBuild and launching it in ECR. Create a repository in CodeCommit. My repository name is "artem-test" In order to work with the repository, make sure that your user has an SSH key loaded. If it is already … Continue reading "AWS – CodeCommit and CodeBuild build Docker image and push it into ECR"
При заливке в TestFlight Fastlane выдает следующее: [Transporter Error Output]: ERROR ITMS-90717: "Invalid App Store Icon. The App Store Icon in the asset catalog in 'your_app.app' can't be transparent nor contain an alpha channel." Transporter transfer failed. ERROR ITMS-90717: "Invalid App Store Icon. The App Store Icon in the asset catalog in 'your_app.app' can't be … Continue reading "Fastlane – TestFlight: Invalid App Store Icon"