jenkins-shared-libraries Questions

2

Solved

From Extending with Shared Libraries - Directory structure I created a shared library where I have multiple *.groovy files implementing global variables in the vars folder. Can I add subfolders to...
Tauten asked 10/5, 2019 at 13:20

2

Solved

I am trying to writing a Jenkins Shared Library for my CI process. I'd like to reference a class that is in the \src folder inside a global function defined in the \vars folder, since it would allo...
Mastigophoran asked 23/10, 2019 at 17:38

3

I am looking for some guidance on the design of a Jenkins Shared Library class. Using global vars as shared library is working fine but everytime I define a class in src/ and I want to import it, I...

3

My project has many common variables for many other projects, so I use Jenkins Shared Library and created a vars/my_vars.groovy file where I defined my variables and return Map of them: class my_v...

1

Solved

I have a shared library repo with this structure: (root) +- src | +- com | +- company | +- DeploySteps.groovy +- vars | +- MainDeploySteps.groovy This library importing to job via Jenkinsfile a...

6

Solved

When I use my new shared library I cannot access environment variables for any src class which is executed either directly by the Jenkinsfile or via a var/*.groovy script. This problem persists eve...
Wingard asked 12/1, 2018 at 22:3

5

I have a jenkins global library and I want to document it. I want to use groovydoc. The library contains classes and global vars src/<package-name> vars Generating documentation for the c...

1

I'm relatively new to Jenkins pipelines, but having implemented already a few, I've realised I need to start using jenkins shared library before I go mad. Have already figured out how to define so...

3

I started implement Jenkins shared libraries and trying to write my jenkinsfile with intellij as my ide. How do I get functions from the shared lib repository to the other repository which holds t...

0

I have setup a pipeline project similar to https://jenkins.io/doc/book/pipeline/syntax/#parallel-stages-example and it works fine. But I have created the same project for different jobs, so rathe...

1

Solved

First my understanding of folder-level shared libraries: It's a groovy script I can place anywhere in the repository where I want it to use (i.e. where my Jenkinsfile will be). If this is wrong pl...
Epilogue asked 30/4, 2018 at 15:35

1

Currently I am working on creating a Jenkins shared library in my project and facing a problem trying to instantiate an object. Tree structure of my application - day#1 -- ./Jenkinsfile -- ./src/F...

0

So here is my project setup A separate groovy project Multiple pipelines All the pipeline scripts refer to the shared groovy project. I went through the shared libraries and all of the needs t...
Vandenberg asked 10/9, 2017 at 5:5
1

© 2022 - 2024 — McMap. All rights reserved.