Skip to content

Commit 51032a5

Browse files
authored
Merge pull request #121 from infosiftr/copy-up-jenkinsfile
Copy up Jenkinsfile.* into "meta"
2 parents 000d07c + 8e5cfb0 commit 51032a5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Jenkinsfile.meta

+10
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,16 @@ node {
107107
sh '.scripts/builds.sh --cache cache-builds.json sources.json > builds.json'
108108
}
109109
}
110+
stage('Janky') {
111+
// ideally, the other jobs that act on the data generated by this one would directly reference each Jenkinsfile.* from *within* the ".scripts" submodule that this job has updated (so that we only run updated scripts with updated data, in the case of something major changing for example)
112+
// Jenkins *does* technically support this, but it requires disabling "lightweight checkout", and doing the full checkout of "meta" (even just making sure it's up-to-date) *just* to grab a single Jenkinsfile from the .scripts submodule is really heavy and kicks over our Jenkins server
113+
// to mitigate this, we "copy up" the Jenkinsfiles directly into "meta" so that we can go back to a "lightweight" checkout
114+
sh '''
115+
rm -rf .jenkins
116+
mkdir .jenkins
117+
cp -av .scripts/Jenkinsfile* .jenkins/
118+
'''
119+
}
110120
stage('Commit') {
111121
sh '''
112122
git add -A .

0 commit comments

Comments
 (0)