2021-02-11 16:55:40 +00:00
---
title: jenkins-builder
---
2021-04-15 14:37:59 +00:00
<!-- DO NOT EDIT THIS FILE MANUALLY -->
<!-- Please read the https://github.com/linuxserver/docker - jenkins - builder/blob/master/.github/CONTRIBUTING.md -->
2019-02-05 07:34:41 +00:00
# linuxserver/jenkins-builder
Expects to run as part of the LSIO CI process. Not for public consumption.
2021-04-15 14:37:59 +00:00
## Running against remote project
```shell
2019-02-05 07:34:41 +00:00
docker run --rm \
-e CONTAINER_NAME=${CONTAINER_NAME} \
-v ${TEMPDIR}:/ansible/jenkins \
2021-04-15 14:37:59 +00:00
ghcr.io/linuxserver/jenkins-builder:latest
2019-02-05 07:34:41 +00:00
```
2021-04-15 14:37:59 +00:00
## Running against local project
2019-02-05 07:34:41 +00:00
If you need to test functionality just navigate to the folder with the jenkins-vars.yml and run:
2021-04-15 14:37:59 +00:00
```shell
docker pull ghcr.io/linuxserver/jenkins-builder:latest & & \
2019-02-05 07:34:41 +00:00
docker run --rm \
-v $(pwd):/tmp \
-e LOCAL=true \
2020-04-07 13:41:41 +00:00
-e PUID=$(id -u) -e PGID=$(id -g) \
2021-04-15 14:37:59 +00:00
ghcr.io/linuxserver/jenkins-builder:latest & & \
2021-02-11 18:00:14 +00:00
rm -rf .jenkins-external
2019-02-05 07:34:41 +00:00
```
2021-04-15 14:37:59 +00:00
2020-04-07 13:41:41 +00:00
Newly generated files (including `README.md` , `Jenkinsfile` , issue templates, etc.) will overwrite the existing files in your current working directory.
2019-03-01 02:25:00 +00:00
2021-04-15 14:37:59 +00:00
## Building locally
If you want to make local modifications to these images for development purposes or just to customize the logic:
```shell
git clone https://github.com/linuxserver/docker-jenkins-builder.git
cd docker-jenkins-builder
docker build \
--no-cache \
--pull \
-t ghcr.io/linuxserver/jenkins-builder:latest .
```
The ARM variants can be built on x86_64 hardware using `multiarch/qemu-user-static`
```shell
docker run --rm --privileged multiarch/qemu-user-static:register --reset
```
Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64` .
## Versions
2019-03-01 02:25:00 +00:00
The following line is only in this repo for loop testing:
- { date: "01.01.50:", desc: "I am the release message for this internal repo." }