Giter VIP home page Giter VIP logo

Comments (5)

baloo42 avatar baloo42 commented on May 14, 2024 7

Waiting for "local-location" solution too! Meanwhile you can use a copy task in your build.gradle

task initLibraries(type: Copy){
    from('./') {
        include 'src/**/*'
        include 'vars/**/*'
    }
    into 'build/classes/groovy/test/nextlayerci-example@master'
}

test.dependsOn initLibraries

https://github.com/nextlayer-ops/jenkins-pipeline-shared-library-example/blob/master/build.gradle#L12-L20
and
https://github.com/nextlayer-ops/jenkins-pipeline-shared-library-example/blob/master/test/groovy/SayHelloTest.groovy#L18-L30

Btw. If you want to use maven you can use the same trick:
https://github.com/nextlayer-ops/jenkins-pipeline-shared-library-example-maven/blob/master/pom.xml#L54-L80

from jenkinspipelineunit.

jimcroft avatar jimcroft commented on May 14, 2024 4

Hi @mkobit

I've put a basic skeleton example of what I'm doing here: https://github.com/jimcroft/jenkinslib-example. Hope it helps. If that example does help you load your Jenkins library from a local location (rather than an scm source) could you add a comment to #75?

Thanks

Jim

from jenkinspipelineunit.

baloo42 avatar baloo42 commented on May 14, 2024 1

Meanwhile I've found a better solution. Thanks to the SAP guys ;)

https://github.com/SAP/jenkins-library/blob/master/test/groovy/PiperTestBase.groovy#L49-L59

from jenkinspipelineunit.

mkobit avatar mkobit commented on May 14, 2024

#75 and #64 are both related to this, would be great to see one of those move forward

from jenkinspipelineunit.

stchar avatar stchar commented on May 14, 2024

Closing in a favor of #31

from jenkinspipelineunit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.