Jenkins – Python Module for Logs in pipelines
In this post, I want to show, in a similar way to the previous one, how to generate logs in pipelines, but this time from a Python script. https://devops-db.com/jenkins-class-for-logs-in-pipelines/ To…
Jenkins – Class for Logs in pipelines
In this post, I will show another change to our Shared Library, as expected, this library must be incremental. At this point, I created another classpath with some classes to…
Groovy – Operations with Yaml and Json
In this Knowledge Base post, I will leave 2 pieces of very simple and extremely similar code, how to read and write Yamls or Jsons, either by loading files or…
Python – Operations with IPs – IP to Int, Int to IP
Hello, another post of code snippets, in this one, I want to leave basically 2 methods that I use whenever I need to do some operation with IPs or a…
Groovy – Call python script with return
Here in this post, I want to leave one more piece of code, which will be useful later on, like a groovy script, you can make a python script call…
Jenkins – Sparse Checkout
Hello, following the next steps in the previous post ( Jenkins – SSH Keys and GitLab Checkout ), now I want to show how to do a Sparse Checkout using…
Jenkins – SSH Keys and GitLab Checkout
In this post, I will show how to configure SSH keys between GitLab and Jenkins, to facilitate script checkout and make the connection more secure, so we stop using http…
Jenkins – Shared Libraries
In this post, I want to show you how to use the Shared Libraries feature in Jenkins. In short, you can create libraries / classes in Groovy and use them…
Python – Yaml Lint
On the same theme as the previous post, I want to show another snippet of code in Python, this time, to “lint” the Yaml file, this should also be very…
Python – YAML validation with Json Schema.
In this post, I want to show another piece of Python code, now, to validate a YAML file against a JSON Schema. There are very good Schema JSON generators, I…