Skip to content

Instantly share code, notes, and snippets.

View chithu-gh's full-sized avatar
🏠
Working from home

Chithra Ramasamy chithu-gh

🏠
Working from home
  • Infosys
  • Bangalore
View GitHub Profile
import java.util.*
import java.io.*
class HelloWorld
{
public static void main(String args[])
{
System.out.println("Hello World");
}
}
@chithu-gh
chithu-gh / Jenkinsfile
Created June 15, 2020 19:53 — forked from jonico/Jenkinsfile
Example for a full blown Jenkins pipeline script with multiple stages, kubernetes templates, shared volumes, input steps, injected credentials, heroku deploy, sonarqube and artifactory integration, Docker containers, multiple Git commit statuses, PR merge vs branch build detection, REST API calls to GitHub deployment API, stage timeouts, stage c…
#!groovy
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
def label = "mypod-${UUID.randomUUID().toString()}"
podTemplate(label: label, yaml: """
spec:
containers:
- name: mvn
image: maven:3.3.9-jdk-8-alpine
@chithu-gh
chithu-gh / Jenkinsfile
Created June 15, 2020 19:50 — forked from dcherman/Jenkinsfile
Example for a full blown Jenkins pipeline script with multiple stages, input steps, injected credentials, heroku deploy, sonarqube and artifactory integration, multiple Git commit statuses, PR merge vs branch build detection, REST API calls to GitHub deployment API, stage timeouts, stage concurrency constraints, ...
#!groovy
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
/*
Please make sure to add the following environment variables:
HEROKU_PREVIEW=<your heroku preview app>
HEROKU_PREPRODUCTION=<your heroku pre-production app>
HEROKU_PRODUCTION=<your heroku production app>