diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..06b83eb --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,31 @@ +pipeline { + agent any + environment { + SSH_CRED = credentials('server-key') + } + stages { + + stage('Build') { + steps { + echo 'building app' + sh "pwd" + sh "ls" + sh "zip -r webapp.zip ." + sh "ls" + } + } + + stage('Deploy') { + steps { + echo 'Deploying app' + } + } + + stage('Clean-Up') { + steps { + echo 'Remove existing files' + deleteDir() + } + } + } +}