In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:
- You can separate the code into different repositories.
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
| import hudson.matrix.MatrixProject | |
| import hudson.model.FreeStyleProject | |
| import hudson.model.Job | |
| import jenkins.model.Jenkins | |
| jobs = Jenkins.instance.getAllItems() | |
| count=0 | |
| jobs.each { j -> | |
| if (j instanceof com.cloudbees.hudson.plugins.folder.Folder) { return } | |
| println 'JOB: ' + j.fullName | |
| numbuilds = j.builds.size() |
If you'd like to experiment with Terraform on macOS locally, a great provider for doing so is the Docker provider. You can get set up in a few simple steps, like so:
Install Docker for Mac if you have not already.
| P1 = [ | |
| 56, 48, 40, 32, 24, 16, 8, | |
| 0, 57, 49, 41, 33, 25, 17, | |
| 9, 1, 58, 50, 42, 34, 26, | |
| 18, 10, 2, 59, 51, 43, 35, | |
| 62, 54, 46, 38, 30, 22, 14, | |
| 6, 61, 53, 45, 37, 29, 21, | |
| 13, 5, 60, 52, 44, 36, 28, | |
| 20, 12, 4, 27, 19, 11, 3 | |
| ] |