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 boto3 | |
| client = boto3.client('route53') | |
| def add_cname_record(source, target): | |
| try: | |
| response = client.change_resource_record_sets( | |
| HostedZoneId='<hosted zone id>', | |
| ChangeBatch= { | |
| 'Comment': 'add %s -> %s' % (source, target), |
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
| def out | |
| def config = new HashMap() | |
| def bindings = getBinding() | |
| config.putAll(bindings.getVariables()) | |
| out = config['out'] | |
| out.println "Printed do Jenkins console." |
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
| # Alfresco users | |
| curl -s -u user:pass http://localhost:8080/alfresco/service/api/people | jq '.people[] .userName' | |
| curl -s -u user:pass http://localhost:8080/alfresco/service/api/people | jq '.people[] | "\(.userName),\(.firstName),\(.lastName),\(.email)"' | |
| # Alfresco groups | |
| curl -s -u user:pass http://localhost:8080/alfresco/service/api/groups | jq '.data[] .shortName' | |
| curl -s -u user:pass http://localhost:8080/alfresco/service/api/groups | jq '.data[] | "\(.shortName),\(.fullName),\(.displayName)"' |