Skip to content

Instantly share code, notes, and snippets.

@ascheman
ascheman / jenkinscli
Created April 8, 2023 09:27
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);
}

Keybase proof

I hereby claim:

  • I am ascheman on github.
  • I am ascheman (https://keybase.io/ascheman) on keybase.
  • I have a public key ASDutrsJoZV1wp5FSDZDdkge79xxb0DhqReFul27CMAdFwo

To claim this, I am signing this object:

# Sample based presentation of https://jqassistant.org
git clone https://github.com/ascheman/uneven-modules.git
cd uneven_modules
# Optional: git checkout feature/jqa-1.3
mvn verify
mvn jqassistant:server
open localhost:7474
The first answer helped me to connect to a JVM running in Kubernetes via a port forwarding:
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=10099
-Dcom.sun.management.jmxremote.rmi.port=10099
-Djava.rmi.server.hostname=127.0.0.1
-Dcom.sun.management.jmxremote.local.only=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false