mirror of
https://github.com/docker/getting-started-app.git
synced 2024-12-22 23:30:50 -05:00
Create Jenkinsfile
This commit is contained in:
parent
a132946a11
commit
6367f5fef9
35
Jenkinsfile
vendored
Normal file
35
Jenkinsfile
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
script {
|
||||
echo "Building"
|
||||
bat "docker build -t ex1:latest ."
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('runnig') {
|
||||
steps {
|
||||
script {
|
||||
echo "runnig"
|
||||
bat "docker run -dp 127.0.0.1:3000:3000 ex1"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('test') {
|
||||
steps {
|
||||
script {
|
||||
echo "testing"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('deploying') {
|
||||
steps {
|
||||
script {
|
||||
echo "deploying"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user