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
| from __future__ import print_function # Python 2/3 compatibility | |
| import boto3 | |
| import json | |
| import decimal | |
| from boto3.dynamodb.conditions import Key, Attr | |
| # Helper class to convert a DynamoDB item to JSON. | |
| class DecimalEncoder(json.JSONEncoder): | |
| def default(self, o): | |
| if isinstance(o, decimal.Decimal): |
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 |