Let's say you want to host domains first.com and second.com.
Create folders for their files:
| import jenkins.model.Jenkins | |
| import jenkins.model.JenkinsLocationConfiguration | |
| String jobNameRegexp = ".*" | |
| long maxThresholdDays = 60; // days | |
| boolean ignoreDisabledJobs = true | |
| def getLastBuildTime(Job job) { | |
| def lastBuild = job.getLastBuild() | |
| if(lastBuild == null) { |
| #!/bin/bash | |
| # A shell script to provide a meaningful diff output for a merge commit that can be used to determine whether the merge was evil. | |
| # The script should be run from outside the git repository, with two arguments: | |
| # 1 - the directory of the git repository | |
| # 2 - the SHA for the merge commit to inspect | |
| # The script will output one file: | |
| # - the merge redone fresh without any conflicts resolved, diff'ed to the actual merge | |
| output_file="diff.txt" |