Jenkinsfile: how to make it install a tool for tests?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Jenkinsfile: how to make it install a tool for tests?

Martin Weber-2
Hi,
I recently added a Jenkinsfile to build my plugin.

Now, when https://ci.jenkins.io runs the build, most of the tests fail, since
these required to have cmake installed.

How can I tell https://ci.jenkins.io to install cmake in my jenkinsfile?
Or is there a way to disable tests, when the plugin is build by ci.jenkins.io?

Plugin ID: cmakebuilder

TIA,
        Martin

--
Cd wrttn wtht vwls s mch trsr.


--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/215961120.ZeoQmv1Zbh%40linux.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkinsfile: how to make it install a tool for tests?

Daniel Beck

> On 26. Nov 2017, at 17:06, Martin Weber <[hidden email]> wrote:
>
> I recently added a Jenkinsfile to build my plugin.
>
> Now, when https://ci.jenkins.io runs the build, most of the tests fail, since
> these required to have cmake installed.
>
> How can I tell https://ci.jenkins.io to install cmake in my jenkinsfile?
> Or is there a way to disable tests, when the plugin is build by ci.jenkins.io?
>
> Plugin ID: cmakebuilder
>

Probably best asked on the infra list, or filed as INFRA issue -- not sure Tyler reads all dev list threads.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/6F17F834-ED13-405B-BCED-2ED14F9EACD9%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkinsfile: how to make it install a tool for tests?

Oleg Nenashev
My suggestion would be to create a custom Jenkinsfile which runs the test in a container with cmake and other tools you need.
But yes, this approach needs to be verified by the Jenkins Infra team.

Best regards,
Oleg

воскресенье, 26 ноября 2017 г., 19:19:22 UTC+3 пользователь Daniel Beck написал:

> On 26. Nov 2017, at 17:06, Martin Weber <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="i3501ScgBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">fifteen...@...> wrote:
>
> I recently added a Jenkinsfile to build my plugin.
>
> Now, when <a href="https://ci.jenkins.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fci.jenkins.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG6KNAp1Lg_VxwmmerdGctEObs8Xg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fci.jenkins.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG6KNAp1Lg_VxwmmerdGctEObs8Xg&#39;;return true;">https://ci.jenkins.io runs the build, most of the tests fail, since
> these required to have cmake installed.
>
> How can I tell <a href="https://ci.jenkins.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fci.jenkins.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG6KNAp1Lg_VxwmmerdGctEObs8Xg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fci.jenkins.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG6KNAp1Lg_VxwmmerdGctEObs8Xg&#39;;return true;">https://ci.jenkins.io to install cmake in my jenkinsfile?
> Or is there a way to disable tests, when the plugin is build by <a href="http://ci.jenkins.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fci.jenkins.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFOz7dbDkaa430NrqJYgXhfPnQC2Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fci.jenkins.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFOz7dbDkaa430NrqJYgXhfPnQC2Q&#39;;return true;">ci.jenkins.io?
>
> Plugin ID: cmakebuilder
>

Probably best asked on the infra list, or filed as INFRA issue -- not sure Tyler reads all dev list threads.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/ffec1352-d41a-4ced-a829-6f30dfcd062d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.