|
1 |
| -#Learn more about Jenkins and JENKINS_HOME directory for which this file is intended. |
| 1 | +# Learn more about Jenkins and JENKINS_HOME directory for which this file is |
| 2 | +# intended. |
| 3 | +# |
2 | 4 | # http://jenkins-ci.org/
|
3 | 5 | # https://wiki.jenkins-ci.org/display/JENKINS/Administering+Jenkins
|
| 6 | +# |
| 7 | +# Note: secret.key is purposefully not tracked by git. This should be backed up |
| 8 | +# separately because configs may contain secrets which were encrypted using the |
| 9 | +# secret.key. To back up secrets use 'tar -czf /tmp/secrets.tgz secret*' and |
| 10 | +# save the file separate from your repository. If you want secrets backed up |
| 11 | +# with configuration, then see the bottom of this file for an example. |
4 | 12 |
|
5 |
| -#ignore all JENKINS_HOME except jobs directory, root xml config, and .gitignore file |
| 13 | +# Ignore all JENKINS_HOME except jobs directory, root xml config, and |
| 14 | +# .gitignore file. |
6 | 15 | /*
|
7 | 16 | !/jobs
|
8 | 17 | !/.gitignore
|
9 | 18 | !/*.xml
|
10 | 19 |
|
11 |
| -#ignore all files in jobs subdirectories except for folders |
12 |
| -#note: git doesn't track folders, only file content |
| 20 | +# Ignore all files in jobs subdirectories except for folders. |
| 21 | +# Note: git doesn't track folders, only file content. |
13 | 22 | jobs/**
|
14 | 23 | !jobs/**/
|
15 | 24 |
|
16 |
| -#uncomment the following line to save next build numbers with config |
| 25 | +# Uncomment the following line to save next build numbers with config. |
| 26 | + |
17 | 27 | #!jobs/**/nextBuildNumber
|
18 | 28 |
|
19 |
| -#exclude only config.xml files in repository subdirectories |
| 29 | +# For performance reasons, we want to ignore builds in Jenkins jobs because it |
| 30 | +# contains many tiny files on large installations. This can impact git |
| 31 | +# performance when running even basic commands like 'git status'. |
| 32 | +builds |
| 33 | +indexing |
| 34 | + |
| 35 | +# Exclude only config.xml files in repository subdirectories. |
20 | 36 | !config.xml
|
21 | 37 |
|
22 |
| -#don't track workspaces (when users build on the master) |
| 38 | +# Don't track workspaces (when users build on the master). |
23 | 39 | jobs/**/*workspace
|
24 | 40 |
|
25 |
| -#as a result only settings and job config.xml files in JENKINS_HOME will be tracked by git |
| 41 | +# Security warning: If secrets are included with your configuration, then an |
| 42 | +# adversary will be able to decrypt all encrypted secrets within Jenkins |
| 43 | +# config. Including secrets is a bad practice, but the example is included in |
| 44 | +# case someone still wants it for convenience. Uncomment the following line to |
| 45 | +# include secrets for decryption with repository configuration in Git. |
| 46 | + |
| 47 | +#!/secret* |
| 48 | + |
| 49 | +# As a result, only Jenkins settings and job config.xml files in JENKINS_HOME |
| 50 | +# will be tracked by git. |
0 commit comments