I didn't say you have to script it. Using a custom URL is a standard
feature of the Tools management in Jenkins.

About your question, note that Tools management isn't related to the cloud
provider you're using.

Cheers
Le 29 juin 2016 6:01 PM, "praveen" <[email protected]> a écrit :

>
> I prefer to install tool in the configuration rather than script to get
> the binary from an URL. The thing is I didn't get any idea to install the
> tool as part of spin up the dynamic instance(ec2 plugin
> <https://wiki.jenkins-ci.org/display/JENKINS/Amazon+EC2+Plugin> not has
> any configuration for the tool installation).
>
> On Wednesday, June 29, 2016 at 12:07:16 AM UTC-7, Baptiste Mathus wrote:
>>
>> Side note: don't install tools downloading directly from the provider.
>> It's nice to use as a PoC, but if for some reason those services go down
>> for a while, you're gonna have issues.
>> There have been things about that king oh thing in the past (was it the
>> npm repo?) explaining that.
>> You want to set up a binary repository you own from which you'll download
>> those.
>>
>> Cheers
>> Le 28 juin 2016 2:03 AM, "praveen" <[email protected]> a écrit :
>>
>>> I've tried to install the maven automatically, But It was not working.
>>> Jenkins master configuration is like this install - install maven
>>> automatically (version 3.0.5), However slave(on-demand) unable to install
>>> maven on the target directory(slave was spun up with the AWS ec2 plugin).
>>> My builds are failing with the maven error.
>>>
>>>
>>>
>>>
>>> *ERROR:*
>>>
>>> *16:51:11* java.io.IOException 
>>> <http://stacktrace.jenkins-ci.org/search?query=java.io.IOException>: Failed 
>>> to install 
>>> https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.0.5/apache-maven-3.0.5-bin.zip
>>>  to /home/csbuild/build/apache-maven-3.0.5
>>>
>>>
>>>
>>> On Thursday, June 23, 2016 at 3:14:20 PM UTC-7, praveen wrote:
>>>>
>>>> Configured automatic slaves for couple jobs on Jenkins using ec2 plugin
>>>> <https://wiki.jenkins-ci.org/display/JENKINS/Amazon+EC2+Plugin>. I
>>>> need to override couple of environment variables for the slave before
>>>> connecting to master. Here is the init script that used to run before it
>>>> connect as slave. What am I doing wrong. Can someone please help me?
>>>>
>>>>
>>>> PROBLEM: I'm able to launch a slave,But unable to set environment
>>>> variables for that slave.
>>>>
>>>>
>>>> GOAL: Install maven-3.2.5 (set home directory to
>>>> /opt/apache-maven-3.2.5),
>>>>
>>>>            Environment variables: (name: DISPLAY, value: :1), (name:
>>>> PATH, value: $PATH:/usr/local/bin)
>>>>
>>>>
>>>>
>>>> #!/bin/sh
>>>>
>>>> sudo mkdir /opt/apache-maven-3.2.5
>>>> if [ -d /opt/apache-maven-3.2.5 ]; then
>>>>     if [ ! -f /tmp/apache-maven-3.2.5-bin.tar.gz ]; then
>>>>         wget -nd -O /tmp/apache-maven-3.2.5-bin.tar.gz 
>>>> https://archive.apache.org/dist/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.tar.gz
>>>>     fi
>>>>     tar -xvf /tmp/apache-maven-3.2.5-bin.tar.gz
>>>>     sudo mv apache-maven-3.2.5 /opt/
>>>>     sudo chown -R jenkins:jenkins /opt/apache-maven-3.2.5
>>>> fi
>>>> PATH=$PATH:/usr/local/bin
>>>> DISPLAY=:1
>>>> MAVEN_HOME=/opt/apache-maven-3.2.5
>>>>
>>>>
>>>> Jenkins version:1.656
>>>> Amazon EC2 plugin:1.31
>>>>
>>>> --
>>> 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 [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/5e24ea5f-0c6d-4382-acfa-bc75a7b6fc95%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/5e24ea5f-0c6d-4382-acfa-bc75a7b6fc95%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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/f34b115b-23a9-45ef-9a9d-da655a62fbc5%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/f34b115b-23a9-45ef-9a9d-da655a62fbc5%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS4ZxhgMZm9UBXFrx-RGC4BorATqp4LBV%2BX14Ey%2BHnvV%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to