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
| # Pull base image. | |
| FROM ubuntu:latest | |
| RUN \ | |
| # Update | |
| apt-get update -y && \ | |
| # Install Unzip | |
| apt-get install unzip -y && \ | |
| # need wget | |
| apt-get install wget -y && \ |
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
| #!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 |
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/bash | |
| # Assumption: | |
| # 1. Your original AWS Creds should be stored at ~/.aws/credentials | |
| # 2. You've corrected ARN for MFA device (search for FIXME) | |
| # 3. You've given correct MFA Code as cli argument | |
| # 4. You have jq installed. Ref: https://stedolan.github.io/jq/ | |
| if [ "$1" == "" ]; then | |
| echo "Usage: `basename "$0"` <MFA-TOKEN>" | |
| exit |