From 7c79ecb59b5ac81a0a73cda56f02d3b2820cd8ff Mon Sep 17 00:00:00 2001 From: satyamchaurasiapersistent <102941840+satyamchaurasiapersistent@users.noreply.github.com> Date: Sun, 20 Nov 2022 12:43:39 +0530 Subject: [PATCH] Pipeline Fix. --- .circleci/config.yml | 10 ++++++---- .circleci/maven.settings.xml | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index bbe930e2..21b32d56 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,4 +1,6 @@ -version: 2 +version: '2.1' +orbs: + circleci-maven-release-orb: sonatype-nexus-community/circleci-maven-release-orb@0.0.18 jobs: build: docker: @@ -12,9 +14,9 @@ jobs: keys: - v1-dependencies-{{ checksum "pom.xml" }} - v1-dependencies- - - run: echo $GPG_ASC_BASE64 | base64 --decode | gpg --batch --no-tty --import --yes + - run: echo $GPG_ASC_BASE64NEW | base64 --decode | gpg --batch --no-tty --import --yes - run: chmod u+x mvnw - - run: ./mvnw -s .circleci/maven.settings.xml clean verify + - run: ./mvnw -s .circleci/maven.settings.xml clean verify -X - run: mvn help:evaluate -Dexpression=project.version -q -DforceStdout > target/version.txt - save_cache: paths: @@ -40,7 +42,7 @@ jobs: keys: - v1-dependencies-{{ checksum "pom.xml" }} - v1-dependencies- - - run: echo $GPG_ASC_BASE64 | base64 --decode | gpg --batch --no-tty --import --yes + - run: echo $GPG_ASC_BASE64NEW | base64 --decode | gpg --version --batch --no-tty --import --yes - run: chmod u+x mvnw - run: ./mvnw -s .circleci/maven.settings.xml clean deploy -DskipTests - save_cache: diff --git a/.circleci/maven.settings.xml b/.circleci/maven.settings.xml index fdfd40f5..34e4c866 100644 --- a/.circleci/maven.settings.xml +++ b/.circleci/maven.settings.xml @@ -21,7 +21,7 @@ gpg gpg - ${env.GPG_PASSPHRASE} + ${env.GPG_PASSPHRASENEW}