This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-16
Channels
- # announcements (5)
- # aws (34)
- # beginners (145)
- # cider (48)
- # circleci (8)
- # clara (7)
- # clj-kondo (28)
- # cljs-dev (75)
- # cljsrn (4)
- # clojure (325)
- # clojure-czech (10)
- # clojure-europe (5)
- # clojure-italy (4)
- # clojure-nl (4)
- # clojure-spec (6)
- # clojure-sweden (3)
- # clojure-uk (70)
- # clojurescript (18)
- # clr (1)
- # community-development (2)
- # cursive (38)
- # data-science (7)
- # datascript (14)
- # datomic (22)
- # emacs (2)
- # figwheel (1)
- # fulcro (6)
- # graalvm (22)
- # graphql (11)
- # hoplon (12)
- # jackdaw (8)
- # jobs-discuss (16)
- # juxt (5)
- # leiningen (19)
- # luminus (5)
- # nrepl (2)
- # nyc (1)
- # off-topic (6)
- # overtone (2)
- # pedestal (10)
- # re-frame (6)
- # reagent (8)
- # reitit (1)
- # rewrite-clj (43)
- # ring (2)
- # shadow-cljs (124)
- # testing (1)
- # vim (22)
- # xtdb (77)
- # yada (4)
Does anyone know this? Can CircleCI Orbs access the disk like steps in a regular CircleCI workflow can? Specifically if a jar is installed into ~/.m2, could an Orb access that?
I do roughly the following
jobs:
build-uberjar:
docker:
- image: clojure:alpine
working_directory: /workspace
steps:
- attach_workspace:
at: /workspace
- restore_cache:
key: << project_name >>-{{ checksum "project.clj" }}
- run: lein deps
- run: lein uberjar
- persist_to_workspace:
root: /workspace
paths:
- .
- run: rm -rf ~/.m2/repository/<< namespace >> # force snapshots re-download
- save_cache:
paths:
- ~/.m2
key: << project_name >>-{{ checksum "project.clj" }}
I do roughly the following
jobs:
build-uberjar:
docker:
- image: clojure:alpine
working_directory: /workspace
steps:
- attach_workspace:
at: /workspace
- restore_cache:
key: << project_name >>-{{ checksum "project.clj" }}
- run: lein deps
- run: lein uberjar
- persist_to_workspace:
root: /workspace
paths:
- .
- run: rm -rf ~/.m2/repository/<< namespace >> # force snapshots re-download
- save_cache:
paths:
- ~/.m2
key: << project_name >>-{{ checksum "project.clj" }}
Orbs work well since in fact when you call an orb (for instance, company/build-uberjar
) it just gets expanded to your .circleci/config.yaml
maybe we should have a #circleci channel? questions about CircleCI regularly come up and it would be nice if these would be saved (via Zulip and logbot) into an archive. @marc-omorain
👍 8
#circleci 😄