Check and create plugins dir before copying plugins
Also restore missing plugin installing
PROD-36733
Change-Id: I10164834af2c66d12e53b60fc28266354a9c3d2d
diff --git a/Dockerfile b/Dockerfile
index 3cda148..1604cb8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -92,6 +92,54 @@
COPY theme /usr/share/jenkins/ref/userContent/theme
COPY plugins_for_offline.txt /opt/
+# list of plugins which should be installed. Doesn't include deps list, which specified in jenkins-plugins-deps file.
+RUN JENKINS_UC_DOWNLOAD=http://archives.jenkins-ci.org /usr/local/bin/install-plugins.sh \
+ antisamy-markup-formatter:1.5 \
+ artifactory:3.15.4 \
+ audit-trail:3.8 \
+ blueocean:1.24.8 \
+ build-blocker-plugin:1.7.3 \
+ build-monitor-plugin:1.12+build.201809061734 \
+ build-timeout:1.19 \
+ build-user-vars-plugin:1.5 \
+ categorized-view:1.10 \
+ command-launcher:1.2 \
+ copyartifact:1.46.2 \
+ description-setter:1.10 \
+ discard-old-build:1.05 \
+ docker-workflow:1.17 \
+ email-ext:2.84 \
+ envinject:2.3.0 \
+ extended-choice-parameter:0.76 \
+ extensible-choice-parameter:1.6.0 \
+ gerrit-trigger:2.35.2 \
+ git:4.8.3 \
+ github:1.34.2 \
+ heavy-job:1.1 \
+ jdk-tool:1.1 \
+ jira:3.3 \
+ jobConfigHistory:2.18.2 \
+ ldap:1.20 \
+ lockable-resources:2.14 \
+ matrix-auth:2.6.6 \
+ monitoring:1.87.0 \
+ multiple-scms:0.6 \
+ performance:3.12 \
+ permissive-script-security:0.3 \
+ pipeline-utility-steps:2.1.0 \
+ plot:2.1.0 \
+ prometheus:2.0.0 \
+ rebuild:1.33 \
+ simple-theme-plugin:0.5.1 \
+ slack:2.49 \
+ ssh-agent:1.17 \
+ ssh-slaves:1.29.4 \
+ test-stability:2.3 \
+ throttle-concurrents:2.0.1 \
+ workflow-cps:2659.v52d3de6044d0 \
+ workflow-remote-loader:1.5 \
+ workflow-scm-step:2.13
+
USER root
RUN mkdir -p /opt/plugins_files_offline \
&& wget -P /opt/plugins_files_offline -i /opt/plugins_for_offline.txt \