add test
This commit is contained in:
parent
bd9a36753f
commit
8e456bfaad
18
pipelines/test
Normal file
18
pipelines/test
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
pipeline {
|
||||||
|
agent { label 'docker' }
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Docker test') {
|
||||||
|
steps {
|
||||||
|
sh 'docker version'
|
||||||
|
sh 'docker ps'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Build image') {
|
||||||
|
steps {
|
||||||
|
sh 'docker build -t test-image:latest .'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user