In the repository where the future groovy files will be stored, create a directory called "utilities" and create the file "BitbucketMultibranch.groovy" in it with the following contents: Now, to create an Item, it is enough to create a file with the groovy extension in the root of the repository, so that it can be processed …
Continue reading "Jenkins – DSL Multibranch Pipeline Creating by Seed Job"
Example Multibranch Pipeline configuration file for a DSL module, with a custom Bitbucket server. Which will include branches: "develop", "staging" and "master". Will store the last 15 builds. And look for Jenkins file along the path: ".jenkins/Jenkinsfile" Repository name: artem-dsl Owner (project name): dev Loans of Jenkins access to Bitbucket: svn-bibucket
In order to force the build number, go to the user’s home directory "jenkins" -> "jobs" -> "Project_name" -> "Branch_name" and open the file "nextBuildNumber". And indicate in it the number of the next assembly. After that, it is necessary for Jenkins to re-read the data from the disk, for this we go to the …
Continue reading "Jenkins – Forcibly set the build number"
Using Jenkins and Fastlane, we will build applications on iOS and Android, send artifacts to Slack, and also automatically send an iOS application to Testflight. The build is configured from the develop and release branches, and reads the release version (major and minor) from them, and adds the build number. For example: the branch is …
Continue reading "Jenkins – Fastlane build iOS and Android apps"