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 hudson.model.* | |
| def oldview = "Braun-SwArch" | |
| newview = new ListView("Braun-SwArch-Milestone1") | |
| def view = Hudson.instance.getView(oldview) | |
| //copy all projects of a view | |
| for(item in view.getItems()) | |
| { |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| Checkstyle-Configuration: Ullrich Hafner | |
| Description: Ullrich Hafner's Checkstyle Rules. | |
| --> | |
| <!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" | |
| "http://www.puppycrawl.com/dtds/configuration_1_2.dtd"> | |
| <module name="Checker"> | |
| <property name="severity" value="warning"/> | |
| <module name="TreeWalker"> |
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
| ChristmasTree(int height) { | |
| if (height < 3) { | |
| throw new RuntimeException(); | |
| } | |
| this.height = height; | |
| } |
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 | |
| git clone https://github.com/algdat/blatt-2-db07 | |
| git clone https://github.com/algdat/blatt-2-maze | |
| git clone https://github.com/algdat/blatt-2-noobs-cpp | |
| git clone https://github.com/algdat/blatt-2-you-are-a-star-1 | |
| git clone https://github.com/algdat/blatt-2-traveler | |
| git clone https://github.com/algdat/blatt-2-sudoku07-1 | |
| git clone https://github.com/algdat/blatt-2-_vbbk_ | |
| git clone https://github.com/algdat/blatt-2-gitpub |
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
| _ _ _ _ __ __ _ _ _ | |
| | | | | ___| | | ___ \ \ / /__ _ __| | __| | | | |
| | |_| |/ _ \ | |/ _ \ \ \ /\ / / _ \| '__| |/ _` | | | |
| | _ | __/ | | (_) | \ V V / (_) | | | | (_| |_| | |
| |_| |_|\___|_|_|\___( ) \_/\_/ \___/|_| |_|\__,_(_) | |
| |/ |
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
| pipeline { | |
| agent any | |
| stages { | |
| stage('Build') { | |
| steps { | |
| sh 'sh gradlew clean' | |
| sh 'sh gradlew compileJava' | |
| } | |
| } | |
| stage('Checkstyle') { |
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
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "bytes" | |
| "io/ioutil" | |
| ) | |
| func main() { |
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
| # Use new container infrastructure to enable caching | |
| sudo: false | |
| # Do not choose a language; we provide our own build tools. | |
| language: generic | |
| # Caching so the next build will be fast too. | |
| cache: | |
| directories: | |
| - $HOME/.stack |
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
| version: "3" | |
| services: | |
| jenkins: | |
| # image: jenkins/jenkins:lts | |
| build: | |
| context: . | |
| dockerfile: jenkins.dockerfile | |
| volumes: | |
| - /var/run/docker.sock:/var/run/docker.sock | |
| - /home/jenkins:/var/jenkins_home |
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
| package moviestore | |
| import "testing" | |
| func newMoviestoreImpl() *moviestoreImpl { | |
| ms := new(moviestoreImpl) | |
| ms.available = make(map[Serial]Movie) | |
| ms.users = make(map[UserID]User) | |
| ms.rented = make(map[UserID][]Movie) |