Commit 852d73fa authored by Amena's avatar Amena

Update Jenkinsfile

parent fa043e75
def label = "jenkinsagent-${UUID.randomUUID().toString()}"
podTemplate( podTemplate(
containers: [containerTemplate(name: 'node', image: 'node:9', command: 'cat', ttyEnabled: true,) containers: [containerTemplate(name: 'jnlp', image: 'jenkins/jnlp-slave:3.27-1', envVars: [ envVar(key: 'GIT_SSL_NO_VERIFY', value: 'true') ],),
containerTemplate(name: 'node', image: 'node:9', command: 'cat', ttyEnabled: true,)
], ],
volumes: [ volumes: [
persistentVolumeClaim(mountPath: 'node_modules', claimName: 'pvc', readOnly: false) persistentVolumeClaim(mountPath: 'node_modules', claimName: 'pvc', readOnly: false)
]) { ]) {
node(POD_LABEL) { node(label) {
stage('Build a Node project') { stage('Build a Node project') {
git 'https://gitlab.mynisum.com/amenaafreen/node-app-test1.git' git 'https://gitlab.mynisum.com/amenaafreen/node-app-test1.git'
container('node') { container('node') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment