Skip to content

Commit

Permalink
pom version + Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
marcos-lg committed Nov 25, 2024
1 parent f16f201 commit 7333680
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 47 deletions.
46 changes: 0 additions & 46 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ pipeline {
not { expression { params.RELEASE } };
anyOf {
branch 'dev';
branch 'dev_jdk8'
}
}
}
Expand Down Expand Up @@ -102,51 +101,6 @@ pipeline {
}
}
}
stage('Deploy to DEV') {
environment {
GIT_CREDENTIALS = credentials('4b740850-d7e0-4ab2-9eee-ecd1607e1e02')
SERVICE_VOCABULARY = "${env.WORKSPACE}/service-vocabulary.yml"
HOSTS_VOCABULARY = "${env.WORKSPACE}/hosts-vocabulary"
BUILD_HOSTS = "${BUILD_ID}_hosts"
}
when {
allOf {
not { expression { params.RELEASE } };
branch 'dev_jdk8';
}
}
steps {
sshagent(['85f1747d-ea03-49ca-9e5d-aa9b7bc01c5f']) {
sh '''
rm -rf *
git clone -b master [email protected]:gbif/gbif-configuration.git
git clone -b dev2 [email protected]:gbif/c-deploy.git
'''

createServiceFile("${env.WORKSPACE}/gbif-configuration/environments/dev/services.yml")
createHostsFile()

sh """
cd c-deploy/services
echo "Creating group_vars directory"
mkdir group_vars
# Configuration and services files are concatenated into a single file, that will contain the Ansible variables
cat ../../gbif-configuration/environments/dev/configuration.yml \
../../gbif-configuration/environments/dev/monitoring.yml \
${SERVICE_VOCABULARY} >> group_vars/${BUILD_ID}
# The default Ansible inventory file 'hosts' is concatenated with the input HOSTS file
cat ../../gbif-configuration/environments/dev/hosts \
${HOSTS_VOCABULARY} >> ${BUILD_HOSTS}
# Executes the Ansible playbook
echo "Executing Ansible playbook"
ansible-playbook -vvv -i ${BUILD_HOSTS} services.yml --private-key=~/.ssh/id_rsa --extra-vars "git_credentials=${GIT_CREDENTIALS}"
"""
}
}
}
stage('Deploy to DEV2') {
environment {
GIT_CREDENTIALS = credentials('4b740850-d7e0-4ab2-9eee-ecd1607e1e02')
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.gbif</groupId>
<artifactId>motherpom</artifactId>
<version>59-SNAPSHOT</version>
<version>58</version>
</parent>

<groupId>org.gbif.vocabulary</groupId>
Expand Down

0 comments on commit 7333680

Please sign in to comment.