I have a scenario where I need to specify multiple tags in the ansibleplugin. I tried multiple ways to specify the list of tags, but I keep getting the below error. How do I specify multiple tags?
java.lang.ClassCastException: class org.jenkinsci.plugins.ansible.workflow.AnsiblePlaybookStep.setTags() expects class java.lang.String but received class java.util.ArrayList
at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:492)
ansiColor('xterm') {
ansiblePlaybook(
playbook: "test.yml",
inventory: "test-inventory.yml",
vaultCredentialsId: "ansible-vault-password",
extras: '-v',
tags: [
"test1",
"test2"
],
extraVars: [
examplefname: "bob",
exampleLname: "${PROFILE}",
],
hostKeyChecking: false,
colorized: true
)
}