ces-build-lib
ces-build-lib copied to clipboard
Jenkins pipeline shared library adding features for Maven, Gradle, Docker, SonarQube, Git and others
add markdown link checking functionality into lib
That deletes everything on the target branch, that is not on the source branch. Avoids deleted files lingering on the pages branch.
Make findIp() also run with a container ID String instead of a container Object. e.g. overloaded (if possible) * ` String findIp(String containerId)` * ` String findIp(container)` Or duck typed,...
Initializing the git object with credentials and later on try to clone a repository providing only the url runs into an error. Executing the 'containsKey' method on a string does...
Behind nginx the httpResponse by SCMM looks like so for example: ``` httpResponse header [server:nginx/1.17.10, date:Wed, 24 Mar 2021 20:03:24 GMT, cache-control:no-cache, location:https://my.host/scm/api/v2/pull-requests/fluxv1/gitops/4] ``` Leading to ``` java.lang.NullPointerException: Cannot invoke...
I had a problem building a maven project which was using the maven scm plugin. I was using the MavenInDocker-class to build the project. The maven project is inside of...
When implementing `Git.pull()` we wondered why `Git.push()` is implemented as `git push origin ${refSpec}`. With this it is impossible to push to other remotes than `origin`. It would be a...
Especially when implementing extensive Git Operations in Jenkins (e.g. GitFlow or GitOps) it might be important to rely specific git features (or avoid bugs fixed in specific versions). However, when...
```java void extractFromImageFileSystem(def imageName, String imagePath, String targetPath) { sh "tempContainer=\$(docker create '${imageName}') && " + "docker cp \${tempContainer}:/${imagePath} '${targetPath}' && " + "docker rm \${tempContainer}" } ```
Allows for using GitHub deploy keys for example