Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the latest CD version of Jenkinsfile Runner from GitHub Packages #14

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions jenkinsfile-runner-prepackaged/Dockerfile.build
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
FROM jenkins/jenkinsfile-runner:adoptopenjdk-11-hotspot
FROM ghcr.io/jenkinsci/jenkinsfile-runner:master

LABEL "com.github.actions.name"="Jenkinsfile Runner Prepackaged"
LABEL "com.github.actions.description"="Runs Jenkinsfile in a pre-packaged single-shot master"
LABEL "com.github.actions.description"="Runs Jenkinsfile in a pre-packaged single-shot controller"
LABEL "com.github.actions.icon"="battery"
LABEL "com.github.actions.color"="blue"

LABEL "repository"="http://github.com/jonico/jenkinsfilerunner-github-actions"
LABEL "repository"="http://github.com/jenkinsci/jenkinsfile-runner-github-actions"
LABEL "homepage"="http://github.com/actions"
LABEL "maintainer"="Johannes Nicolai <jonico@github.com>"

ENV JENKINS_VERSION=2.319.3

COPY Jenkinsfile-helloworld /app/setup/Jenkinsfile-helloworld
COPY base-plugins.txt /app/setup/plugins.txt

# NOTE: The base as of Feb '22, is 7 months old. For this reason, we need to download the latest LTS and upgrade the base bits
RUN curl -L http://updates.jenkins.io/download/war/${JENKINS_VERSION}/jenkins.war -o /app/jenkins-${JENKINS_VERSION}.war
RUN apt-get update && apt-get install -y zip git

COPY setup.sh /app/setup/setup.sh
RUN /app/setup/setup.sh
# TODO: Restore when adding GitHub specific plugins
# COPY setup.sh /app/setup/setup.sh
# RUN /app/setup/setup.sh

COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh" ]
2 changes: 0 additions & 2 deletions jenkinsfile-runner-prepackaged/base-plugins.txt

This file was deleted.