Skip to content

alexanderj1988/jenkins-pipeline-utils

Repository files navigation

jenkins-pipeline-utils

Public Jenkins Pipeline Utilities Library which are build upon Kubernetes To use this library add the repository and the artifact as maven dependency using the following mechanics:

Grape

@GrabResolver(name='stroeerdigitalpublishing', root='https://dl.bintray.com/stroeerdigitalpublishing/maven/')
@Grab(group='de.stroeerdigitalpublishing', module='jenkins-pipeline-utils', version='1.0-latest')

Maven

<repository>
  <id>stroeerdigitalpublishing</id>
  <name>stroeerdigitalpublishing</name>
  <url>https://dl.bintray.com/stroeerdigitalpublishing/maven/</url>
</repository>
<dependency>
  <groupId>de.stroeerdigitalpublishing</groupId>
  <artifactId>jenkins-pipeline-utils</artifactId>
  <version>1.0-latest</version>
  <type>pom</type>
</dependency>

Gradle

maven {
        url "https://dl.bintray.com/stroeerdigitalpublishing/maven/"
}
compile 'de.stroeerdigitalpublishing:jenkins-pipeline-utils:1.0-latest'

Ivy

<ibiblio name="stroeerdigitalpublishing" 
         root="https://dl.bintray.com/stroeerdigitalpublishing/maven/" 
         m2compatible="true" />
<dependency org='de.stroeerdigitalpublishing' name='jenkins-pipeline-utils' rev='1.0-latest'>
  <artifact name='jenkins-pipeline-utils' ext='pom' ></artifact>
</dependency>

Requirements to build and publish (authorized persons only) locally

Build and publish using local jdk enviroment

Windows

$ ./gradlew.bat clean build bintrayUpload -PbuildNumber=<buildNumber> -PbintrayPublish=<true|false> -PbintrayUser=<user> -PbintrayApiKey=<apiKey>

Linux

$ ./gradlew clean build bintrayUpload -PbuildNumber=<buildNumber> -PbintrayPublish=<true|false> -PbintrayUser=<user> -PbintrayApiKey=<apiKey>

Docker

$ docker run -it \
             --rm \
             --workdir /root/project \
             -v <local-project-path>:/root/project \
             openjdk:8u131-jdk-apline \
             ./gradlew clean build bintrayUpload -PbuildNumber=<buildNumber> \
             -PbintrayPublish=<true|false> -PbintrayUser=<user> -PbintrayApiKey=<apiKey>

About

Public Jenkins Pipeline Utilities

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages