Skip to content

Instantly share code, notes, and snippets.

/*
# add credentials for cloning git repository over https
export ADMIN_USER=admin
export ADMIN_PASSWORD=
java -jar ./war/WEB-INF/jenkins-cli.jar -s http://127.0.0.1:8080/ groovy \
--username $ADMIN_USER --password $ADMIN_PASSWORD \
tools/add_or_update_creds.groovy \
github-helloworld-username \
github-helloworld-password \
@mspurtacz
mspurtacz / .gitignore
Created June 17, 2017 08:57 — forked from skarab7/.gitignore
gitignore dla teaching-jenkins
jenkins/.**
jenkins/war/**
jenkins/plugins/**
jenkins/copy_reference_file.log
jenkins/logs/**
jenkins/queue.xml.bak
jenkins/jobs/*/builds
jenkins/jobs/*/workspace
jenkins/credentials.xml
jenkins/plugins.txt
@mspurtacz
mspurtacz / create_user.groovy
Created June 17, 2017 08:57 — forked from skarab7/create_user.groovy
create_user.groovy
/*
Umieść w swoim repozytorim teaching-jenkins:
jenkins/tools/create_user.groovy
*/
/*
# create a user
docker exec -i -t jenkins-wsb /bin/bash
cd /var/jenkins_home