This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GitLab Settings | |
def gitUrl = 'http://git/api/v3' | |
def privateToken = 'xYxYxYxYxYxYxYxYxYxY' | |
def currentPage = 1 | |
def projectsPerPage = 100 | |
// Reading projects from GitLab REST API | |
def projectList = new URL("${gitUrl}/projects/all?page=${currentPage}&per_page=${projectsPerPage}&private_token=${privateToken}") | |
def projects = new groovy.json.JsonSlurper().parse(projectList.newReader()) | |
projects.each { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
job('jersey-rest-server') { | |
scm { | |
git { | |
remote { | |
url('[email protected]:marcelbirkner/jersey-rest-server.git') | |
} | |
createTag(false) | |
} | |
} | |
triggers { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.sql.Sql | |
import java.util.Date | |
import java.text.SimpleDateFormat | |
/* | |
* THIS IS AN EXAMPLE SNIPPET. FOR MORE DETAILS SEE THE FOLLOWING BLOG ARTICLE: | |
* https://blog.codecentric.de/en/?p=30502 | |
* | |
* This Jenkins Job DSL Groovy Script creates Continuous Integration (CI) Jobs | |
* for all Maven & Ant projects that exist on a GitLab Server. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This script is used to control a USB Traffic Light from Cleware. You can buy | |
# the USB Traffic Light from this shop: http://www.cleware-shop.de | |
# | |
# The script uses the REST API and can be used for newer versions of Jenkins that provide a REST API. | |
# | |
# Requirements: | |
# | |
# The Cleware USB Traffic Light comes with a control software that you can |
NewerOlder