-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Jenkins Plugin Installation manager for showing updates
- Loading branch information
1 parent
8723e7e
commit 1c081df
Showing
5 changed files
with
74 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
Jenkins Config As Code Example.iml | ||
|
||
# Plugin installation manager dev tools | ||
jenkins-plugin-manager-*.jar | ||
tmp/ | ||
|
||
# IDE | ||
.classpath | ||
.project | ||
.settings | ||
.factorypath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
FROM jenkins/jenkins:2.164.1 | ||
ARG JENKINS_VERSION=2.238 | ||
FROM jenkins/jenkins:$JENKINS_VERSION | ||
MAINTAINER Oleg Nenashev <[email protected]> | ||
LABEL Description="This demo shows how to setup Jenkins Config-as-Code with Docker, Pipeline, and Groovy Hook Scripts" Vendor="Oleg Nenashev" Version="0.2" | ||
|
||
# Plugin Installation Manager | ||
ARG PLUGIN_MANAGER_TOOL_VERSION=1.0.2 | ||
RUN wget https://github.com/jenkinsci/plugin-installation-manager-tool/releases/download/plugin-management-parent-pom-$PLUGIN_MANAGER_TOOL_VERSION/jenkins-plugin-manager-$PLUGIN_MANAGER_TOOL_VERSION.jar -O /usr/share/jenkins/ref/jenkins-plugin-manager.jar | ||
|
||
ENV JENKINS_UC_EXPERIMENTAL=https://updates.jenkins.io/experimental | ||
COPY plugins.txt /usr/share/jenkins/ref/plugins.txt | ||
COPY download-and-check-updates.sh /usr/local/bin/download-and-check-updates.sh | ||
RUN /usr/local/bin/download-and-check-updates.sh < /usr/share/jenkins/ref/plugins.txt | ||
RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt | ||
|
||
COPY init_scripts/src/main/groovy/ /usr/share/jenkins/ref/init.groovy.d/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
1c081df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@oleg-nenashev Just out of interest, why aren't you using the new "jenkins-plugin-manager.jar" (that you download at
demo-jenkins-config-as-code/Dockerfile
Line 8 in 1c081df
1c081df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@reinholdfuereder There were some fatal flaws in Plugin Installation Manager which prevented me from using it at that point. Many of them have been resolved in 1.1.0 and above, so now it totally makes sense to use Plugin Installation Manager instead
1c081df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the extremely fast response and your explanation!
1c081df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dared to make a pull request for switching: #20