Need help to run a "java -jar" command #12720
Andysg1947
started this conversation in
Development
Replies: 1 comment 2 replies
-
On Sun, Apr 28, 2024 at 12:52 PM Andysg1947 ***@***.***> wrote:
Hi Team,
I have a use case in which I want to run "java -jar
{jarfile_from_another_repo} {current_repo_workspace} "
where jarfile_from_another_repo is a jar file stored in another repo and
current_repo_workspace is the workspace of current repo in which we are
running pipeline.
It would be helpful if you can help me to solve this use case.
Is that a maven repo or just a URL from which you would download the jar
file? Did you publish that jar to that other repo?
Assuming a basic set up of the jar being downloadable over http, you would
author a shell script that downloads the jar, places it into the current
directory, and then uses java to run the jar.
e.g.
#!/bin/bash
set -e
curl -o myapp.jar https://remoterepo/package/myapp-1.3.2.jar
java -jar myapp.jar
If you can share more, then we can help you tailor make your pipeline
design.
Here's how GoCD itself is built and tested using GoCD:
https://build.gocd.org/
Thanks
…
—
Reply to this email directly, view it on GitHub
<#12720>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAF5JGVA2KLE25CRHX4K2F3Y7R6CDAVCNFSM6AAAAABG4VJ2QCVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWGU3TCNRQGY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team,
I have a use case in which I want to run "java -jar {jarfile_from_another_repo} {current_repo_workspace} "
where jarfile_from_another_repo is a jar file stored in another repo and
current_repo_workspace is the workspace of current repo in which we are running pipeline.
It would be helpful if you can help me to solve this use case.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions