Skip to content

Instantly share code, notes, and snippets.

@ben-mcclain
ben-mcclain / JENKINS_JOB_DSL_VS_JENKINSFILE.md
Last active January 6, 2022 22:28
The Jenkins job DSL is different than a job's declarative actions

The Jenkins job DSL is different than a job's declarative actions

Recently, I was trying to add a new job to our Jenkins using Jenkins Configuration as Code. When refreshing the CASC, I was greeted with this beautiful error:

javaposse.jobdsl.dsl.helpers.BuildParametersContext.choice() is applicable for argument types: (java.util.LinkedHashMap)

While not too helpful, it does indicate this has to do with a choice type parameter.

Troubleshooting

@svrist
svrist / cf_create_or_update.py
Created February 7, 2017 21:34
Update or create a CloudFormation stack given a name and template + params'
'Update or create a stack given a name and template + params'
from __future__ import division, print_function, unicode_literals
from datetime import datetime
import logging
import json
import sys
import boto3
import botocore