File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 5
5
Archive Jenkins settings and plugins
6
6
7
7
* ` $JENKINS_HOME/*.xml `
8
+ * ` $JENKINS_HOME/*.jks `
8
9
* ` $JENKINS_HOME/jobs/*/*.xml `
9
10
* ` $JENKINS_HOME/nodes/* `
10
11
* ` $JENKINS_HOME/plugins/*.jpi `
Original file line number Diff line number Diff line change @@ -64,6 +64,11 @@ function main() {
64
64
65
65
cp " ${JENKINS_HOME} /" * .xml " ${ARC_DIR} "
66
66
67
+ jks_count=$( find ${JENKINS_HOME} -maxdepth 1 -type f -name * .jks | wc -l)
68
+ if [ ${jks_count} -ne 0 ]; then
69
+ cp " ${JENKINS_HOME} /" * .jks " ${ARC_DIR} /"
70
+ fi
71
+
67
72
cp " ${JENKINS_HOME} /plugins/" * .[hj]pi " ${ARC_DIR} /plugins"
68
73
hpi_pinned_count=$( find ${JENKINS_HOME} /plugins/ -name * .hpi.pinned | wc -l)
69
74
jpi_pinned_count=$( find ${JENKINS_HOME} /plugins/ -name * .jpi.pinned | wc -l)
Original file line number Diff line number Diff line change 25
25
"jenkins-backup/users/" ,
26
26
"jenkins-backup/users/sue445/" ,
27
27
"jenkins-backup/users/sue445/config.xml" ,
28
+ "jenkins-backup/saml-jenkins-keystore.jks" ,
28
29
]
29
30
30
31
describe tar_file ( "/tmp/relative_archive.tar.gz" ) do
You can’t perform that action at this time.
0 commit comments