I wouldn’t do any of that in a CI-only system. If I did, I’d use tools that exist for those jobs that already allow scripting languages.
- Why wouldn’t you use IaC tools for this? All the majors have Python already.
- What build or deploy task needs to both create and reference a bug ticket?
- What build or deploy task needs to do database lookups? Or possibly what task needs those across multiple, independent stages?