Skip to content

Instantly share code, notes, and snippets.

@ascheman
Created April 8, 2023 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ascheman/d070e73259b4faa617907bfb5bb69c8b to your computer and use it in GitHub Desktop.
Save ascheman/d070e73259b4faa617907bfb5bb69c8b to your computer and use it in GitHub Desktop.
Call Jenkins CLI with JBang
///usr/bin/env jbang "$0" "$@" ; exit $?
//REPOS jenkins=https://repo.jenkins-ci.org/releases/,mavencentral
//DEPS org.jenkins-ci.main:cli:2.399
public class jenkinscli {
public static void main(String... args) throws Exception {
hudson.cli.CLI.main(args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment