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
|
FROM node:14-alpine
|
||||||
|
|
||||||
RUN apk add -U subversion
|
|
||||||
|
|||||||
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@@ -1,17 +1,7 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent { dockerfile true }
|
||||||
label 'docker'
|
|
||||||
}
|
|
||||||
stages {
|
stages {
|
||||||
stage('Init') {
|
stage('Init') {
|
||||||
agent {
|
|
||||||
docker {
|
|
||||||
// Set both label and image
|
|
||||||
label 'docker'
|
|
||||||
image 'node:lts-alpine3.14'
|
|
||||||
args '--name docker-node' // list any args
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
steps {
|
||||||
sh 'node --version'
|
sh 'node --version'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user