Skip to content

Commit

Permalink
switched circleci from mvn and jar to sam and zip
Browse files Browse the repository at this point in the history
  • Loading branch information
cameroncaci committed Nov 2, 2023
1 parent ca2b731 commit b1718dc
Showing 1 changed file with 12 additions and 27 deletions.
39 changes: 12 additions & 27 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,55 +25,40 @@ jobs:
command: scripts/build
- run:
name: Release
command: |
ARTIFACT_ID=$(mvn org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression=project.artifactId -q -DforceStdout)
VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression=project.version -q -DforceStdout)
JAR_NAME="target/$ARTIFACT_ID-$VERSION.jar"
scripts/release $CIRCLE_PROJECT_USERNAME $CIRCLE_PROJECT_REPONAME << pipeline.git.tag >> $JAR_NAME
command: scripts/release $CIRCLE_PROJECT_USERNAME $CIRCLE_PROJECT_REPONAME << pipeline.git.tag >>
- run:
name: Move jar and checksum to workspace
name: Move zips and checksums to workspace
command: |
mkdir -p workspace
# Grab jar name
ARTIFACT_ID=$(mvn org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression=project.artifactId -q -DforceStdout)
VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression=project.version -q -DforceStdout)
JAR_NAME="target/$ARTIFACT_ID-$VERSION.jar"
# Copy jar to workspace
cp $JAR_NAME workspace/
# Copy checksums to workspace
cp checksums.txt workspace/checksums.txt
cp deployment-package.stg.zip workspace/
cp stg-checksums.txt workspace/
cp deployment-package.prd.zip workspace/
cp prd-checksums.txt workspace/
- persist_to_workspace:
root: workspace
paths:
- checksums.txt
- "*.jar"
- "target/*.jar"
- "*.zip"
- "*.txt"
- attach_workspace:
command: |
pwd
ls
at: workspace
- store_artifacts:
path: workspace/checksums.txt
destination: artifacts
- store_artifacts:
path: workspace/*.jar
path: workspace/*.zip
destination: artifacts
- store_artifacts:
path: workspace/target/*.jar
path: workspace/*.txt
destination: artifacts
workflows:
version: 2
build:
jobs:
- build:
context:
- org-global
- org-global
release:
jobs:
- release:
context:
- org-global
- org-global
filters:
branches:
ignore: /^.*/
Expand Down

0 comments on commit b1718dc

Please sign in to comment.