Browse Source

adjusted dockerfile and jenkinsfile to install from cnpm

xiaoct 7 years ago
parent
commit
8ce9071bf7
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Dockerfile
  2. 1 1
      Jenkinsfile

+ 1 - 1
Dockerfile

@@ -17,6 +17,6 @@ ENV SONAR_RUNNER_HOME=/sonar-scanner-3.2.0.1227-linux
 ENV PATH $PATH:/sonar-scanner-3.2.0.1227-linux/bin
 COPY sonar-runner.properties ./sonar-scanner-3.2.0.1227-linux/conf/sonar-scanner.properties
 RUN npm install cnpm -g --registry=https://registry.npm.taobao.org
-RUN npm install gitbook-cli -g 
+RUN cnpm install gitbook-cli -g 
 ADD default /etc/nginx/sites-available
 EXPOSE 80

+ 1 - 1
Jenkinsfile

@@ -27,7 +27,7 @@ pipeline {
 
         stage('Install') {
             steps {
-                sh 'npm install'
+                sh 'cnpm install'
             }
         }