Trying to use the shared library feature, unsuccessfully.

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

Trying to use the shared library feature, unsuccessfully.

dandeliondodgeball
ERROR: Library XYZ expected to contain at least one of src or vars directories
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: Loading libraries failed

I created a new repo, and a "src" directory. And added "Wipe out repo and force clone", thinking it wasn't seeing that latest from the repo.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6fe5bc83-2865-4570-9d06-3afce7c115fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trying to use the shared library feature, unsuccessfully.

dandeliondodgeball
Maybe I am not understanding shared libraries.  I have another repo, in which there are python scripts I need to call to be able to build the repo for which I have the pipeline created.  So I make pipeline A for repo B, but I need to call scripts in repo C to build.  It looked like shared libraries were the way for pipeline A to know about repo C.  Is there another/better way of doing that?  Thx

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8c6046d8-2f78-47b0-b270-a9aa4c148a79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trying to use the shared library feature, unsuccessfully.

Joe Cavanaugh
I don't know if I fully understand your question... but here is something I did to solve getting scripts for execution in RepoA from repo's B,C,D... I now know the specific directories to execute the scripts from and the files that needed to be updated for Puppet. 

If you find a better way or this is not what you're looking for, please let me know. 
        stage('Pre-Build') {
            steps { 
                parallel (
                    R10K_Git: { dir("${env.WORKSPACE}\\${params.R10K_PROJECT}") {
                        git ([url: "${GIT_URL}/${params.R10K_PROJECT}.git", credentialsId:"creds"])
                    } },

                    Hieradata_Git: { dir("${env.WORKSPACE}\\${params.HIERADATA_PROJECT}") {
                        git ([url: "${GIT_URL}/${params.HIERADATA_PROJECT}.git", credentialsId:"creds"])
                    } },

                    Jenkins_Scripts_Git: { dir("${env.WORKSPACE}\\build\\scripts") {
                        git ([url: "${GIT_URL}/Jenkins_Scripts.git", credentialsId:"creds"])
                    } }
                )
            }
        }


On Friday, September 29, 2017 at 11:45:20 AM UTC-5, dandeliondodgeball wrote:
Maybe I am not understanding shared libraries.  I have another repo, in which there are python scripts I need to call to be able to build the repo for which I have the pipeline created.  So I make pipeline A for repo B, but I need to call scripts in repo C to build.  It looked like shared libraries were the way for pipeline A to know about repo C.  Is there another/better way of doing that?  Thx

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9569de8f-84f5-4bcd-9c5b-5adcad2823c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.