Browse Source

Fix jobs copying, Add nodeJS v12

master
Apostolos Fanakis 5 years ago
parent
commit
a6460a900b
  1. 2
      jenkins/Dockerfile
  2. 5
      jenkins/groovy/nodejs.groovy

2
jenkins/Dockerfile

@ -31,7 +31,7 @@ RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt
COPY groovy/* /usr/share/jenkins/ref/init.groovy.d/
# Adds job configurations for apella
COPY jobs/* /var/jenkins_home/jobs/
COPY jobs/. /var/jenkins_home/jobs/
# Sets defaults
# Gets rid of admin password setup

5
jenkins/groovy/nodejs.groovy

@ -6,10 +6,11 @@ import jenkins.plugins.nodejs.tools.NodeJSInstaller
import static jenkins.plugins.nodejs.tools.NodeJSInstaller.DEFAULT_NPM_PACKAGES_REFRESH_HOURS
final versions = [
'NodeJS 13.x': '13.10.1'
'NodeJS 13.x': '13.10.1',
'NodeJS 12.x': '12.16.1'
]
final globalPackages = "eslint@~6.8.0"
final globalPackages = "eslint@~6.8.0 truffle@~5.1.18"
Jenkins.instance.getDescriptor(NodeJSInstallation).with {
installations = versions.collect {

Loading…
Cancel
Save