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 | |
stages { | |
stage('usernamePassword') { | |
steps { | |
script { | |
withCredentials([ | |
usernamePassword(credentialsId: 'gitlab', | |
usernameVariable: 'username', |
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 { | |
environment { | |
ARTIFACTORY_TOKEN = credentials('Artifactory_Jenkins_Token') | |
} | |
//... | |
} |
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 { label 'agent' } | |
options { | |
disableConcurrentBuilds() | |
skipStagesAfterUnstable() | |
timestamps() | |
buildDiscarder(logRotator(numToKeepStr: '30', artifactNumToKeepStr: '15')) | |
} | |
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
//In Jenkinsfile: | |
def gitlab() { | |
return load("jenkins/library/gitlab.groovy") | |
} | |
//In jenkinks/library/gitlab.groovy: | |
def veryGoodMethods() { | |
// ... |
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
package com.hlag.fis.test.persistence; | |
import java.util.Collections; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Map.Entry; | |
import java.util.Properties; | |
import javax.persistence.EntityManager; | |
import javax.persistence.EntityManagerFactory; |