Skip to content

Instantly share code, notes, and snippets.

@rafiamafia
Last active May 26, 2022 06:34
Show Gist options
  • Save rafiamafia/d61650c21564b11fc2a7137a4001371d to your computer and use it in GitHub Desktop.
Save rafiamafia/d61650c21564b11fc2a7137a4001371d to your computer and use it in GitHub Desktop.
time to version control outside your brain

Validate your Jenkinsfile

curl -X POST --user username-:accesstoken -F "jenkinsfile=<Jenkinsfile" https://jenkins-host-dns/pipeline-model-converter/validate

Jenkins cleanup

Workspace Plugin found here

    agent {
        label 'Just livn ma life'
    }
    stages {
        stage('Do your thang') {
            steps {
                script {
                    echo "Im doing my thang"
                }
            }
        }
    }
    post {
        always {
            cleanWs(deleteDirs: true)
        }
    }
}

Vim shortcuts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment