The picture says "unable to access agent.jar".  I think that means you need
to download the agent.jar file into the directory where you are running the
command which launches that agent.

I continue to believe that you may be making a more fundamental mistake
than the command line arguments.

If you want to run an agent, and that agent is a Linux agent (or FreeBSD or
macOS or Solaris or Raspbian or ...), then my first preference is to use
the "ssh based" technique to start the agent, instead of using the JNLP
based technique to start the agent.

If you want to run an agent and that agent is Windows, then you'll need to
use the JNLP based method.  In my small environments, I've preferred to
configure Windows agents to launch themselves from a command line on the
Windows agent computer, rather than trying to make the Jenkins master start
the agent.

Mark Waite

On Thu, Mar 22, 2018 at 9:07 AM Ana MB <amar...@bufetedemarketing.com>
wrote:

> This is what I've done and I tried writing:
>  $ java -jar agent.jar -jnlpUrl http://yourserver:port
> /computer/agent-name/slave-agent.jnlp
>
> But it's still showing:
>
>
> <https://lh3.googleusercontent.com/-9To2O1zHHbU/WrPDgCzQikI/AAAAAAAAAOc/Wn4AIHmGbNkMVuOFyFxwdPKNaC-ixPAjwCLcBGAs/s1600/3.jpg>
>
> And I don't know to resolve it...
>
> Thanks so much.
>
> El jueves, 22 de marzo de 2018, 14:46:31 (UTC+1), Mark Waite escribió:
>>
>>
>>
>> On Thu, Mar 22, 2018 at 6:57 AM Ana MB <ama...@bufetedemarketing.com>
>> wrote:
>>
>>> I'm pretty new in this field, so.... I don't know what I'm doing
>>> clearly. I read about it but I don't know how to do it works.
>>>
>>> What argument is needed for -jnlpURL?
>>>
>>>
>>  the JNLP URL of the Jenkins master .
>>
>> Please read the wiki page
>> https://wiki.jenkins.io/display/JENKINS/Distributed+builds .
>>
>> Mark Waite
>>
>>
>>> Thanks so much!!!
>>>
>>>
>>>
>>> El jueves, 22 de marzo de 2018, 13:48:22 (UTC+1), Mark Waite escribió:
>>>
>>>> It appears that you're launching a JNLP based agent from the master
>>>> without providing the JNLP URL of the Jenkins master.  The -jnlpURL
>>>> argument needs a value.
>>>>
>>>> It also appears that you're using an outdated name for the jar file.  I
>>>> believe it is now called "agent.jar" instead of "slave.jar".
>>>>
>>>> I'm not sure why you'd launch an agent from the master without having
>>>> that agent run somewhere else (on another machine, for example).  Is this
>>>> an experiment, or intentional?
>>>>
>>>> Refer to
>>>> https://wiki.jenkins.io/display/JENKINS/Distributed+builds#Distributedbuilds-Launchagentheadlessly
>>>>  .
>>>>
>>>> On Thu, Mar 22, 2018 at 6:01 AM Ana MB <ama...@bufetedemarketing.com>
>>>> wrote:
>>>>
>>> Hi guys!
>>>>>
>>>>> I'm fighting to configure slaves in my Jenkins, but I am not able to
>>>>> do it....
>>>>> One of my proofs is the following, but I can't make it work.
>>>>>
>>>>> Tell me what I'm doing wrong please... I'm turning crazy...
>>>>> Thanks so much for your help...
>>>>>
>>>>>
>>>>> <https://lh3.googleusercontent.com/-qObMjmqoVyQ/WrOak0OshiI/AAAAAAAAAOE/XdF6Y1szkDoSuD42a1kPSd99BPZiaMIXQCLcBGAs/s1600/1.jpg>
>>>>>
>>>>>
>>>>> <https://lh3.googleusercontent.com/-3dWcwM9LUSo/WrOamSqRElI/AAAAAAAAAOI/uZ7AYs2lgV4jbD3MBHoJLg3bk25lelssACLcBGAs/s1600/2.jpg>
>>>>> I've changed the kind of "Launch method", but I've got the same result
>>>>> -> WRONG!
>>>>>
>>>>> Thanks guys!
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Jenkins Users" group.
>>>>>
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to jenkinsci-use...@googlegroups.com.
>>>>
>>>>
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/jenkinsci-users/ffa2e08a-e931-401a-8447-6fe44cd840ab%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/jenkinsci-users/ffa2e08a-e931-401a-8447-6fe44cd840ab%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Jenkins Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to jenkinsci-use...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/04f37c3e-722b-43c7-9d9f-e26ca81da3b6%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/04f37c3e-722b-43c7-9d9f-e26ca81da3b6%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/1282e395-435b-4774-a9e3-3ae421a9a7b7%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/1282e395-435b-4774-a9e3-3ae421a9a7b7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHorUeyHaZOf3a59ZKLuHpzbo12w05R8WaNc5tKZnRHXQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to