Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
kenny-evitt
@kenny-evitt
LambdaCD looks great – thanks!
Florian Sellmayr
@flosell
Thanks, let me know if you run into any issues or need help
encho
@encho
hi just saw the talk at clojureD. this solution feels very good. thanks a lot for that! do you use lambdacd in production at thoughtworks?
Florian Sellmayr
@flosell
Hi, thanks for the feedback! Yes, we have projects that use LambdaCD in production
erikseppanen
@erikseppanen
hi florian. I'm trying out lambdacd. I like the concept. But I'm having a problem - my build artifacts (pretty much anything that gets created in shell/bash) get deleted after the build completes. They're being created corrected in the lambda5342535... folders, but disappear after the build finishes successfully. any ideas?
Florian Sellmayr
@flosell
Hi, sorry for the late reply. This is kind-of by design, workspaces should be ephemeral. If you need artifacts later on, you have to make it explicit. lambdacd-artifacts (https://github.com/flosell/lambdacd-artifacts) might help you there
erikseppanen
@erikseppanen
Florian, I have artifacts working now - thanks! I am working on another aspect of lambdacd now, which is multiple pipelines. Should multiple pipelines be implemented as separate instances of lambdacd, or is it straightforward to implement multiple pipelines in a single running lambdacd?
erikseppanen
@erikseppanen
nvm, i found the answer in the documentation, and the cookie-cutter project is a good example of how to implement them.
Sreenath Nannat
@tacticiankerala
I need one help,
I was trying to setup slack integration for lambdacd. I could not figure out how to post build failure/success to slack. I found a way to subscribe to step-finished and step-result-updated, but I do not think it will help me achieve what I want. Any help on this will be appreciated.
Florian Sellmayr
@flosell
Hi, i would have started with those Events. What is it you are struggling with?
Sreenath Nannat
@tacticiankerala
@flosell I want to post a summary at the end of the build. I am not concerned about each step right now.
Florian Sellmayr
@flosell
You can use the step ids to figure this out: if you get a success from the last step the Pipeline was successful (lambdacd valuestream does this: https://github.com/flosell/lambdacd-value-stream/blob/master/src/lambdacd_value_stream/core.clj) and failed if a root step (step Id with length 1) failed
Sreenath Nannat
@tacticiankerala
I'll take a look. I ended up going with the following,
(junction
     (with-repo
       run-tests
       build)
     post-success-to-slack
     post-failure-to-slack)
Florian Sellmayr
@flosell
Interesting approach, haven't thought about that :)
You could also look at how lambdacd aggregates the build state in the UI: https://github.com/flosell/lambdacd/blob/master/src/clj/lambdacd/presentation/pipeline_state.clj#L23
if you come up with a good solution for slack integration, it would be great to have that as a library. I'd be happy to help out bringing it into shape to make it public. just ping me if you need help
Sreenath Nannat
@tacticiankerala
I didn't think about that! I'll be more than happy to contribute :smile:
I am setting apart sometime for this on Monday. I'll ping you with more queries then :smile:
Sreenath Nannat
@tacticiankerala
@flosell : Sorry, I got carried away with somethings at work :( . I am hoping to work on this over the coming weekend.
Florian Sellmayr
@flosell
Ok, no worries, let me know if you need supprt
Sreenath Nannat
@tacticiankerala

@flosell , I was working on the slack integration and here is the approach I am taking:-

  • Take pipeline-context as a parameter
  • subscribe to step-finished event
  • During each event, check the status of overall build status
  • post results to slack if the overall build status either success/failure

I see that there is a pipeline-state-component in pipeline-context. But, how can I calculate overall build status?

Florian Sellmayr
@flosell

Sounds like a good approach.

(lambdacd.internal.pipeline-state/get-all pipeline-state-component) should give you the complete state. That's a map of build-numbers to state of the build (which again is a map of step-ids to step-results). lambdacd.presentation.pipeline-state/overall-build-status should give you the overall status of a build (that's what's being used by the build-history you see in the UI). So (pipeline-state-presentation/overall-build-status (get (pipeline-state/get-all pipeline-state-component) build-number) should give you what you need (haven't tested it though). If you need more details, I'd start by looking at how the history API endpoint is implemented (https://github.com/flosell/lambdacd/blob/master/src/clj/lambdacd/ui/api.clj#L29) and going from there

Sreenath Nannat
@tacticiankerala
Thanks @flosell , I'll try that then :+1:
Sreenath Nannat
@tacticiankerala
@flosell : I have come up with first version -> https://github.com/multunus/lambdacd-notifications
Looking forward for your feedback
Sreenath Nannat
@tacticiankerala
@flosell : did you get a chance to look at the first version :point_up:
TempPlaceHolder
@TempPlaceHolder
Hello! Can lambdacd also be used with private repositories?
erikseppanen
@erikseppanen
Yes it can be used with private repos
Nuno Santos
@nmarquesantos
hi guys
great product :)
been playing around with it for a couple of days
I haven't managed to find a way to authenticate with a private repo, e.g. cloning a private one via https
how can I add the auth details?
erikseppanen
@erikseppanen
you can clone private repos via ssh using using github deploy keys and an ssh config file that directs each github project to its respective deploy key like this http://nerderati.com/2011/03/17/simplify-your-life-with-an-ssh-config-file/
I didn't see a way to clone via https