#Hi All,Any input on how we can run Jenkins slave-agent.jnlp with open JDK.

1 messages ยท Page 1 of 1 (latest)

keen aspen
#

Have to run in Azure VM.

Thanks

merry yachtBOT
#

<@&987246399047479336> please have a look, thanks.

#

Here is an AI assisted attempt to answer your question ๐Ÿค–. Maybe it helps! In any case, a human is on the way ๐Ÿ‘. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#

To run Jenkins slave-agent.jnlp with OpenJDK on an Azure VM, you can follow these steps:

  1. Provision an Azure VM: Create a virtual machine in Azure and ensure that it has the necessary resources to run Jenkins.

  2. Install OpenJDK: Connect to the Azure VM and install OpenJDK using the package manager of your Linux distribution. For example, if you are using Ubuntu, you can run the following command:

    sudo apt-get update
    sudo apt-get install openjdk-8-jdk
    
  3. Download Jenkins slave-agent.jnlp: On the Azure VM, download the slave-agent.jnlp file from your Jenkins server. You can find this file by navigating to the "Manage Jenkins" > "Manage Nodes" section in your Jenkins web interface.

  4. Launch Jenkins slave agent: Run the following command on your Azure VM to start the Jenkins slave agent:

    java -jar slave.jar -jnlpUrl <URL_TO_JNLP_FILE>
    

    Replace <URL_TO_JNLP_FILE> with the actual URL or path to the downloaded slave-agent.jnlp file.

  5. Connect to Jenkins master: Once the slave agent is running, it will connect to your Jenkins master server and appear as a new node in the "Manage Nodes" section of your Jenkins web interface.

That's it! You should now have a Jenkins slave running on your Azure VM using OpenJDK.

hybrid mantle
#

ChatGPT answer seems reasonable?

merry yachtBOT
#

@keen aspen

Your question has been closed due to inactivity.

If it was not resolved yet, feel free to just post a message below
to reopen it, or create a new thread.

Note that usually the reason for nobody calling back is that your
question may have been not well asked and hence no one felt confident
enough answering.

When you reopen the thread, try to use your time to improve the quality
of the question by elaborating, providing details, context, all relevant code
snippets, any errors you are getting, concrete examples and perhaps also some
screenshots. Share your attempt, explain the expected results and compare
them to the current results.

Also try to make the information easily accessible by sharing code
or assignment descriptions directly on Discord, not behind a link or
PDF-file; provide some guidance for long code snippets and ensure
the code is well formatted and has syntax highlighting. Kindly read through
https://stackoverflow.com/help/how-to-ask for more.

With enough info, someone knows the answer for sure ๐Ÿ‘

keen aspen
#

@hybrid mantle I tried chatgpt ansswer but didn't work

still radish
#

"didnt work" isnt helpful

keen aspen
#

This <URL_TO_JNLP_FILE> I need to get from inside .jnlp <jars> tag ?

hybrid mantle
#

We don't know exactly your setup so it's hard to give a specific answer

keen aspen
#

Open JDk doesn't have JAVAWS.exe (Java webstart) so in my Azure VM i want to run .jnlp , I know oracle open jdk has support for Java webstart .. so my qustion here is can we have any way to do this with open jdk?

left fern
merry yachtBOT
#

@keen aspen

Your question has been closed due to inactivity.

If it was not resolved yet, feel free to just post a message below
to reopen it, or create a new thread.

Note that usually the reason for nobody calling back is that your
question may have been not well asked and hence no one felt confident
enough answering.

When you reopen the thread, try to use your time to improve the quality
of the question by elaborating, providing details, context, all relevant code
snippets, any errors you are getting, concrete examples and perhaps also some
screenshots. Share your attempt, explain the expected results and compare
them to the current results.

Also try to make the information easily accessible by sharing code
or assignment descriptions directly on Discord, not behind a link or
PDF-file; provide some guidance for long code snippets and ensure
the code is well formatted and has syntax highlighting. Kindly read through
https://stackoverflow.com/help/how-to-ask for more.

With enough info, someone knows the answer for sure ๐Ÿ‘

keen aspen
#

Thanks everyone finally able to connect jenkins-agent.jnlp with openJDK by using OpenWebstart