![]() Now the next time a ‘fire’ comes and you must quickly create a new tag based on your new hot bug fix, you can just click a few buttons to create your next release tag. Then every time you or someone that’s much, much less experienced on your team can perform this operation by clicking a few buttons and filling out a form. If you invest time into learning Jenkins, it won’t take you long to create jobs like this one. Creating something like this took me maybe an hour or two. The options are endless… but hopefully this gives you just a taste of how powerful using automation with Jenkins can be. To create a tag, select the folder in your working copy which you want to tag, then select the command TortoiseSVN ->Branch/Tag., and give the URL which. If the tests don’t pass, the tag isn’t created! Make this job run a suite of tests before the tag is created.OR make this job automatically increment the version every time! That way the tag automatically grabs the version from whatever is in the project. Rather than forcing the user to input the version, make the argument instead point to a path within the project that holds the version file. ![]() That way it can copy from anywhere to a tag. Instead of assuming we copy from the trunk, make that another parameter.While this may not be very powerful, consider adding the following features (would not take that much extra effort) to make it a lot more powerful: Make sure the SVN package is installed on your build server.Īnd there you have it! How simple is that? Instead of having to run the command every time, you can click the “Build with Parameters” button in Jenkins, type in a few parameters, then the tags will be created the same way every time. We finally do the copy using several variables we have previously defined.Both from and to use the BASE_PATH that we set as an environment variable.This allows you to put other text along with your version, such as “v” 1.0.0 or MyProject-1.0.0 depending on how you want your naming scheme. The version tag will be consistent every time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |