dockerfile test.
Some checks failed
internetmastercz/test/pipeline/head There was a failure building this commit
Some checks failed
internetmastercz/test/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -1,3 +1 @@
|
||||
FROM node:14-alpine
|
||||
|
||||
RUN apk add -U subversion
|
||||
|
||||
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@@ -1,17 +1,7 @@
|
||||
pipeline {
|
||||
agent {
|
||||
label 'docker'
|
||||
}
|
||||
agent { dockerfile true }
|
||||
stages {
|
||||
stage('Init') {
|
||||
agent {
|
||||
docker {
|
||||
// Set both label and image
|
||||
label 'docker'
|
||||
image 'node:lts-alpine3.14'
|
||||
args '--name docker-node' // list any args
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'node --version'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user