Skip to content

Commit 01be2cd

Browse files
committed
Merge branch 'master' of github.com:stelligent/continuous_integration_example
2 parents 0fa3aec + d67b4f7 commit 01be2cd

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
hange into your jenkins home.
2+
3+
cd /usr/share/tomcat6/.jenkins
4+
5+
# Add any new conf files, jobs, users, and content.
6+
git add -f *.xml jobs/*/config.xml .gitignore
7+
8+
# Ignore things we don't care about
9+
cat > .gitignore <<EOF
10+
log
11+
*.log
12+
*.tmp
13+
*.old
14+
*.bak
15+
*.jar
16+
.*
17+
plugins/
18+
updates/
19+
jobs/*/builds
20+
jobs/*/last*
21+
jobs/*/next*
22+
jobs/*/*.csv
23+
jobs/*/*.txt
24+
jobs/*/*.log
25+
jobs/*/workspace
26+
EOF
27+
28+
# Remove anything from git that no longer exists in jenkins.
29+
git status --porcelain | grep '^ D ' | awk '{print $2;}' | xargs -r git rm
30+
31+
# And finally, commit and push
32+
git commit -m 'Automated commit of jenkins configuration' -a
33+
git push

0 commit comments

Comments
 (0)