Skip to content

Commit c738595

Browse files
committed
Trying a commit to test the SCM trigger on Jenkins
1 parent 8751613 commit c738595

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/org/apache/commons/cli/ParseTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public static void main(String[] args) throws ParseException {
2525

2626
options.addOption("h",false, "Hello world");
2727
options.addOption("t",false,"display current time");
28+
options.addOption("d",false,"hello from dockerhub");
2829

2930
CommandLineParser parser = new DefaultParser();
3031
CommandLine cmd = parser.parse(options,args);
@@ -38,5 +39,8 @@ public static void main(String[] args) throws ParseException {
3839
ZonedDateTime zdt = ZonedDateTime.now( z ) ;
3940
System.out.println(dtf.format(zdt));
4041
}
42+
if(cmd.hasOption("d")){
43+
System.out.println("hello from Dockerhub");
44+
}
4145
}
4246
}

0 commit comments

Comments
 (0)