Automate packaging with Jenkins
When I first created snoap, I was working in a business that had a Jenkins server. I've since moved on to using GitHub Actions, but kept this section of the site for reference.
Jenkins can automate all the packaging steps I've documented on this site. It's especially useful if you are sharing your applications with a wider team who have access to Jenkins.
In this scenario, all you need to do is to commit your code and then anyone who wants a copy of the tested, deployable application can grab it from Jenkins. You can have Jenkins build every time you commit, nightly, or just build on-demand.
Getting Jenkins to perform your testing and packaging is pretty straightforward. You need to create a Jenkins job, associate your Git repository with it and then add shell script to perform all the steps documented on this site. It should look something like this.
Shell script to be executed by Jenkins | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
The script build_current_version.sh
is separated purely for convenience so I can easily run it in my dev environment.
build_current_version.sh | |
---|---|
1 2 3 4 5 |
|