Revert "Merge pull request #146 from ngiger/verify_downloads"
This reverts commit 4494a71285f030d18f258c6b245019eccd8146e5, reversing
changes made to 9395d3fdd74cd43f03b1844fbb0c3e48d713cbc1.
diff --git a/Dockerfile b/Dockerfile
index 64d1fe3..2d687f0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,6 @@
FROM java:8-jdk
-RUN apt-get update && apt-get install -y wget git curl zip file && rm -rf /var/lib/apt/lists/*
+RUN apt-get update && apt-get install -y wget git curl zip && rm -rf /var/lib/apt/lists/*
ENV JENKINS_HOME /var/jenkins_home
ENV JENKINS_SLAVE_AGENT_PORT 50000
diff --git a/plugins.sh b/plugins.sh
index f0285bb..3413ce4 100755
--- a/plugins.sh
+++ b/plugins.sh
@@ -24,11 +24,4 @@
JENKINS_UC_DOWNLOAD=$JENKINS_UC/download
fi
curl -sSL -f ${JENKINS_UC_DOWNLOAD}/plugins/${plugin[0]}/${plugin[1]}/${plugin[0]}.hpi -o $REF/${plugin[0]}.jpi
- if ls -l $REF/${plugin[0]}.jpi && file $REF/${plugin[0]}.jpi | grep 'Zip archive'
- then
- echo Download okay. ${plugin[0]}.jpi seems to be a Zip archive
- else
- echo "Downloading via '${cmd}' failed"
- exit 3
- fi
done < $1