Skip to content

Instantly share code, notes, and snippets.

@nerd0
Created November 5, 2014 02:11
Show Gist options
  • Save nerd0/8ceb47227015b6b72d38 to your computer and use it in GitHub Desktop.
Save nerd0/8ceb47227015b6b72d38 to your computer and use it in GitHub Desktop.
Jenkins .gitgnore
bash -c 'cat << EOF > /var/lib/jenkins/.gitignore
*
!*.xml
!.gitignore
!jobs
!jobs/.gitignore
!jobs/*
!jobs/*/*
EOF'
bash -c 'cat << EOF > /var/lib/jenkins/jobs/.gitignore
builds/
workspace/
lastStable
lastSuccessful
nextBuildNumber
modules/
*.log
EOF'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment