Created
February 23, 2023 07:28
-
-
Save itspacchu/26004fb0b9c36fe920f33719c604fff2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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