diff --git a/Jenkinsfile b/Jenkinsfile index f50bbda..400904a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,15 +21,13 @@ def githubApiTokenCredentials = string(credentialsId: githubApiTokenCredentialsI // Script path: Jenkinsfile // [x] Lightweight checkout pipeline { - agent { - docker { - image 'node:8-slim' - } - } + agent any stages { stage('Install') { steps { - sh 'yarn --cache-folder=.cache/yarn --pure-lockfile' + nodejs('node8') { + sh 'yarn --cache-folder=.cache/yarn --pure-lockfile' + } } } stage('Release') { @@ -38,7 +36,9 @@ pipeline { deleteDir() } withCredentials([githubApiTokenCredentials]) { - sh '$(npm bin)/gulp release' + nodejs('node8') { + sh '$(npm bin)/gulp release' + } } } } diff --git a/package.json b/package.json index a7931b3..fe84ea1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "couchbase-docs-ui", "description": "Produces the UI bundle used by the Couchbase documentation site", + "license": "MPL-2.0", "homepage": "https://docs.couchbase.com", "repository": { "type": "git",