Skip to content

Instantly share code, notes, and snippets.

@itspacchu
Created February 23, 2023 07:28
Show Gist options
  • Save itspacchu/26004fb0b9c36fe920f33719c604fff2 to your computer and use it in GitHub Desktop.
Save itspacchu/26004fb0b9c36fe920f33719c604fff2 to your computer and use it in GitHub Desktop.
pipeline {
agent any
environment {
DOCKER_BUILD_NAME = "project"
}
stages {
stage('Starting') {
steps {
sh 'echo "Starting Build ..."'
}
}
stage('testing multi-steps'){
steps {
sh 'ls -la'
sh 'pwd'
}
}
stage('Build docker container'){
steps{
sh 'docker build -t $DOCKER_BUILD_NAME ./.venv/'
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment