[26.09.2020] pipeline changes
This commit is contained in:
parent
79dd6881af
commit
bf662f2c75
@ -28,7 +28,7 @@ try {
|
|||||||
timestamps {
|
timestamps {
|
||||||
node ("${env.SLAVE_LABEL}") {
|
node ("${env.SLAVE_LABEL}") {
|
||||||
stage('Initialise') {
|
stage('Initialise') {
|
||||||
checkout([$class: 'GitSCM', branches: [[name: 'master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'Github', url: 'https://github.com/andyjk15/price-collector.git']]])
|
checkout([$class: 'GitSCM', branches: [[name: 'master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'Github', url: env.GIT_REPOSITORY_URL]]])
|
||||||
|
|
||||||
env.APPLICATION_VERSION = get_application_version()
|
env.APPLICATION_VERSION = get_application_version()
|
||||||
|
|
||||||
@ -45,16 +45,7 @@ try {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Test Artifact') {
|
|
||||||
try {
|
|
||||||
// mvn 'verify -DskipUTs -DskipTests'
|
|
||||||
} finally {
|
|
||||||
// mvn 'test'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Build Image') {
|
stage('Build Image') {
|
||||||
// mvn 'clean package -DskipTests'
|
|
||||||
|
|
||||||
executeShellScript("configuration/scripts/mapVarsToConfigs.sh",
|
executeShellScript("configuration/scripts/mapVarsToConfigs.sh",
|
||||||
env.DIGITAL_OCEAN,
|
env.DIGITAL_OCEAN,
|
||||||
@ -78,7 +69,6 @@ try {
|
|||||||
|
|
||||||
stage('Tag Repository') {
|
stage('Tag Repository') {
|
||||||
|
|
||||||
|
|
||||||
withCredentials(
|
withCredentials(
|
||||||
[usernamePassword(
|
[usernamePassword(
|
||||||
credentialsId: env.GITHUB_CREDENTIALS_ID,
|
credentialsId: env.GITHUB_CREDENTIALS_ID,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user