jenkins-lib | Jenkins shared library для 1С : Предприятие | Continuous Deployment library
kandi X-RAY | jenkins-lib Summary
kandi X-RAY | jenkins-lib Summary
Jenkins shared library для 1С:Предприятие 8
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of jenkins-lib
jenkins-lib Key Features
jenkins-lib Examples and Code Snippets
{
"$schema": "https://raw.githubusercontent.com/firstBitSemenovskaya/jenkins-lib/master/resources/schema.json",
"v8version": "8.3.14.1976",
"secrets": {
"storagePath": "f7b21c02-711a-4883-81c5-d429454e3f8b",
"storage" : "c
pipeline1C()
@Library('jenkins-lib') _
pipeline1C()
Community Discussions
Trending Discussions on jenkins-lib
QUESTION
I have a Jenkinsfile that uses the shared Jenkins lib and calls method inside the groovy file defined below.
...ANSWER
Answered 2021-May-18 at 20:44As stated in the docs of the shared libraries plugin, a library repo has a very specific structure. The root of the repo can have the following 3 folders:
QUESTION
got some questions running project piper on Kubernetes. We did the setup like described in
https://sap.github.io/jenkins-library/guidedtour/
I assumed that a build will run "out-of-the-box"... but it isn't. Invoking a mtaBuild results in a message ... Cannot connect to docker daemon ... permission denied
Not sure if we have to set env variable ON_K8S. If we set it ... the build is waiting forever for a node to come up.
Is there any setup guide for Kubernetes? Do we have to configure a pod Template in the Jenkins configuration and work with container("container_name") in the Jenkinsfile ?
Is the Jenkins agent https://hub.docker.com/r/ppiper/jenkins-agent-k8s already preconfigured? Do we have to set it over env variable?
...ANSWER
Answered 2020-Mar-05 at 08:22Updated answer:
The cx-server scripts are not made for running in Kubernetes, they are built for a "plain docker" setup (a linux server/vm with docker installed).
For scaling on Kubernetes, two options are available:
Using the jenkins master image in a pod as described in this blog post, or using it in a "plain docker" setup and optionally having additional agents on kubernetes.
Additional documentation on this topic is here
QUESTION
How to loop parametrized parallel stages in Jenkins declarative pipeline? (Or scripted pipeline, if declarative is not able to)
Here is my simple pseudo example. How to loop ('deploy serverN') stages?
Array may have 1..n variables.
I would not like to duplicate code. There must be a way in Jenkins pipelines?? Or should I use matrix. I have tried a few, but not succesfully.
...ANSWER
Answered 2020-Mar-04 at 07:57I have the solution:
Update Blue Ocean at least to version 1.22 to see pipeline correctly.
Install library https://github.com/comquent/imperative-when as @zett42 suggested.
This example is scripted pipeline. (I did not found solution for declarative pipeline)
QUESTION
I am setting up a CI/CD pipeline scenario for SCP NEO environment based on the prebuilt pipeline on Project Piper. I tried to execute a pre-built library called Project Piper for Jenkins and I got the following error.The error seems neo.sh is not found. But I downloaded neo SDK and placed it in the neo-sdk folder. Also neo.sh is available inside /opt/sap/neo-sdk/neo-java-web-sdk-3.39.10/tools folder in linux
please see .pipeline/config file where that location is referenced
Docker is not used and I set-up Jenkins in ubuntu inside Vmware virtual machine.If the docker is not available,the library is capable of running locally in Jenkins server. I am keeping neo-sdk tool in a local folder which contain neo.sh which is used to deploy application to SAP Cloud Platform.I am not writing any script my own as everything is prebuilt scripts from Project piper
...ANSWER
Answered 2020-Feb-11 at 21:55As already state in the GH issue you should extend your PATH
env var to also look inside /opt/sap/neo-sdk/neo-java-web-sdk-3.39.10/tools
.
You do this by executing export PATH=$PATH:/opt/sap/neo-sdk/neo-java-web-sdk-3.39.10/tools
.
Or an even better way would be to symlink the neo.sh
into a folder that is already on the PATH
.
With echo $PATH
you can display the env var and have a look which directories are already exposed.
QUESTION
I have jenkins_library with handleCheckout.groovy which handles checkout:
...ANSWER
Answered 2020-Jan-22 at 09:01Could you please your setup
1) handleCheckout.groovy must be located in vars
folder (has to check)
2) handleCheckout.groovy must have def call
(you have to change)
3) Inside your pipeline you have to run Jenkinsfilename(), in your case handleCheckout
Just in case doc - https://jenkins.io/doc/book/pipeline/shared-libraries/
So at the and you have to change procedure name to def call
and check Jenkins file location (must be in vars folder inside shared library)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jenkins-lib
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page