Cleaning up

This commit is contained in:
Jesse James Isler 2022-06-09 10:06:50 +02:00
parent da39a7fc5f
commit d25b04d44a

80
Jenkinsfile vendored
View File

@ -1,22 +1,37 @@
//pipeline { /*
// agent { dockerfile true } //Original Pipeline
// stages {
// stage('Test') { pipeline {
// steps { agent { dockerfile true }
// echo "Build has worked!" stages {
// } stage('Test') {
// } steps {
// } echo "Build has worked!"
//} }
}
}
}
*/
//New Pipeline
pipeline { pipeline {
agent none agent none
// tools { /*
// nodejs "815Node" //For some reason, this scrashes Jenkins
// }
// environment { tools {
// registry = 'dockerhubusername/dockerhubusername' nodejs "815Node"
// registryCredential = 'dockerhubcredentials' }
// } */
/* We won't be Pushing to Dockerhub YET
environment {
registry = 'dockerhubusername/dockerhubusername'
registryCredential = 'dockerhubcredentials'
}
*/
stages { stages {
stage('INSTALL PACKAGES') { stage('INSTALL PACKAGES') {
agent any agent any
@ -54,19 +69,22 @@ pipeline {
} }
} }
} }
// stage("DEPLOY DOCKER") { /*
// steps { // Again, no pushing to Docker Hub
// script {
// docker.withRegistry('', registryCredential) { stage("DEPLOY DOCKER") {
// dockerImageBuild.push() steps {
// } script {
// } docker.withRegistry('', registryCredential) {
// } dockerImageBuild.push()
// } }
// stage("DEPLOY & ACTIVATE") { }
// steps { }
// echo 'this part will differ depending on setup' }
// } stage("DEPLOY & ACTIVATE") {
// } steps {
echo 'this part will differ depending on setup'
}
}
} }
} }