cache VS jenkins-std-lib

Compare cache vs jenkins-std-lib and see what are their differences.

cache

Cache dependencies and build outputs in GitHub Actions (by actions)

jenkins-std-lib

Bringing the Zen of Python to Jenkins. (by DontShaveTheYak)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
cache jenkins-std-lib
40 14
4,241 49
2.2% -
7.4 0.0
4 days ago 9 days ago
TypeScript Groovy
MIT License GNU General Public License v3.0 only
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

cache

Posts with mentions or reviews of cache. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-22.
  • GitHub Actions could be so much better
    21 projects | news.ycombinator.com | 22 Sep 2023
    > with no persistent storage

    There's https://github.com/actions/cache though?

  • Optimizing GitHub Actions Performance: Enhance Workflows with Caching
    5 projects | dev.to | 19 Jun 2023
    Use Cache Actions: GitHub Actions provides cache actions that simplify caching implementation. The @actions/cache JavaScript library is a popular choice for managing caching in workflows. It offers flexible options for storing and retrieving cache artifacts based on keys, scopes, and paths.
  • Speeding up GitHub Actions with npm cache
    3 projects | dev.to | 1 Jun 2023
    GitHub maintain a set of repos called actions. One of which is called cache.
  • How I Sliced Deployment Times to a Fraction and Achieved Lightning-Fast Deployments with GitHub Actions
    5 projects | dev.to | 17 May 2023
    By utilizing the actions/cache action action, we implemented a strategy to store and retrieve dependencies, preventing redundant installations.
  • Use GitHub Actions to Make Your GitHub Profile Dynamic
    3 projects | news.ycombinator.com | 10 Apr 2023
    I do think it's good practice to enable caching, such that your script doesn't hit RubyGems / pip / npm / etc every time it runs.

    That way at least the automation activity stays entirely within the GitHub / Azure network.

    It looks like you can do that for Ruby by adding this:

    https://github.com/actions/cache/blob/master/examples.md#rub...

        - uses: ruby/setup-ruby@v1
  • A guide to using act with GitHub Actions
    5 projects | dev.to | 23 Mar 2023
    ➜ getting-started-with-act git:(master) act -j build WARN ⚠ You are using Apple M1 chip and you have not specified container architecture, you might encounter issues while running act. If so, try running it with '--container-architecture linux/amd64'. ⚠ [Node.js CI/build] πŸš€ Start image=node:16-buster-slim [Node.js CI/build] 🐳 docker pull image=node:16-buster-slim platform= username= forcePull=false [Node.js CI/build] 🐳 docker create image=node:16-buster-slim platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] [Node.js CI/build] 🐳 docker run image=node:16-buster-slim platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] [Node.js CI/build] ☁ git clone 'https://github.com/actions/setup-node' # ref=v3 [Node.js CI/build] ☁ git clone 'https://github.com/actions/cache' # ref=v3 [Node.js CI/build] ☁ git clone 'https://github.com/actions/upload-artifact' # ref=v3 [Node.js CI/build] ⭐ Run Main actions/checkout@v3 [Node.js CI/build] 🐳 docker cp src=/Users/andrewevans/Documents/projects/getting-started-with-act/. dst=/Users/andrewevans/Documents/projects/getting-started-with-act [Node.js CI/build] βœ… Success - Main actions/checkout@v3 [Node.js CI/build] ⭐ Run Main Use Node.js 16.x [Node.js CI/build] 🐳 docker cp src=/Users/andrewevans/.cache/act/actions-setup-node@v3/ dst=/var/run/act/actions/actions-setup-node@v3/ [Node.js CI/build] 🐳 docker exec cmd=[node /var/run/act/actions/actions-setup-node@v3/dist/setup/index.js] user= workdir= [Node.js CI/build] πŸ’¬ ::debug::isExplicit: [Node.js CI/build] πŸ’¬ ::debug::explicit? false
  • duplicated cache by cache action
    2 projects | /r/github | 21 Feb 2023
  • runner image with MS office installed - do-able? is there a better way?
    2 projects | /r/github | 30 Dec 2022
    You could try to find some point in the process where you can set up Actions caches with actions/cache, otherwise Container customization for Self-Hosted Runners is currently in Beta.
  • [Question] Decrease Docker image's build time
    2 projects | /r/devops | 27 Sep 2022
    I would configure Github Actions cache so Docker doesn't have to compile all layers from scratch every time
  • The strongest principle of the blog's growth lies in the human choice to deploy it
    14 projects | dev.to | 3 Sep 2022
    In the copied example, npm caching is done via actions/cache@v2 action. But we can simplify our workflow by dropping this step and using built-in functionality for caching

jenkins-std-lib

Posts with mentions or reviews of jenkins-std-lib. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-03.
  • The worst thing about Jenkins is that it works
    12 projects | news.ycombinator.com | 3 Dec 2023
    > On a previous team I had used Concourse CI to some extent, but I wasn’t really blown away by the experience. Travis and Circle were mentioned. I was a fool. I should have committed to seriously researching some of the contenders and making a more informed decision, but I lacked the willpower and the discernment.

    The whole post can be summed up as he had very little CICD experience. Made lots of beginner mistakes, which is easy to do in Jenkins. Then decided to write a post where all his complaints about Jenkins are not only wrong but are the issues that plague all the other CICD tools.

    > So instead of writing Bash directly, you’re writing Bash inside Groovy

    Why are you doing that? You have a fully featured programming language and you are running `sh('npm install')`. You could do this instead https://github.com/DontShaveTheYak/jenkins-std-lib/blob/mast... . How is bash inside of YAML better?

    > The trouble is: Groovy is a much, much worse language for executing commands than Bash. Bash is interpreted, has a REPL that is great for experimentation, does require a ton of imports, and has lightweight syntax. Groovy has none of these things.

    Groovy has a language server, linters and a vscode IDE plugins. They are probably not as stable or full featured as the bash ones, but they are available and very few take advantage of them. Again, how is YAML+Bash better?

    > The way that developers test their Groovy steps is by triggering a job on the remote Jenkins server to run them. The feedback loop is 2 orders of magnitude slower than it is for just executing Bash locally.

    This is a rookie mistake. For about 60-75% of pipelines you can run them locally in a docker container on your local machine. You can even set up hot code reload so as you change your pipeline the Jenkins reloads it. You can also configure the job to kick off a build when it reloads the code. When Jenkins is configured correctly it has the fastest feedback loop of any CICD tool on the market. GitHub actions comes in a close second since it can also be run locally but you cant run a "clone" of what you run in production, like having the same secrets, so it gets second place. Beside Jenkins and GitHub actions, I dont know of any solutions for the other tools.

    You can run a GitHub action on Jenkins. It's a very deep and complex system. It's like an iceberg and so many engineers dont leave the surface before deciding it sucks and one of the YAML CICD tools is better. Sure the YAML alternatives are EASY to get started with and to do basic stuff with. But they are Terrible at anything complex. While Jenkins is not easy to get started with, once mastered, you can build complex pipelines with ease.

    I get that I'm a Jenkins fanboy. Most of the things I mentioned above, I either contribute to or I'm the author of. I know Jenkins has issues. I know it has hurt lots of people, I read the complaints online. But it's still the best out there. The best software in the world is not written in bash or yaml and the same is true of the best CICD pipelines in the world. It's a shame very few people get to see/use those pipelines.

  • GitHub actions top alternatives
    3 projects | /r/devops | 10 May 2023
    With Jenkins you can still run your favorite GitHub actions. https://github.com/DontShaveTheYak/jenkins-std-lib/blob/master/jobs/github/actions/step_example.groovy
  • Looking for a speaker on a panel on "how to make the most of Jenkins", pm me if interested
    6 projects | /r/devops | 31 Mar 2023
    This library has a lot of helpful features https://github.com/DontShaveTheYak/jenkins-std-lib , one of my favorites is being able to run GitHub actions natively in Jenkins pipelines.
  • Jenkins in kubernetes without docker
    2 projects | /r/devops | 5 Jan 2023
    Here is an example using s6 overlay https://github.com/DontShaveTheYak/jenkins-std-lib/tree/master/docker/prod
  • Which CICD Pipeline is the least hardest to develop from
    2 projects | /r/devops | 15 Aug 2022
    Run a Jenkins locally in docker. I use a vscode dev container for this. https://github.com/DontShaveTheYak/jenkins-std-lib/blob/master/.devcontainer/devcontainer.json
  • What CICD tool do you guys use?
    3 projects | /r/devops | 7 Jul 2022
  • Ask HN: Where are all the Show HNs?
    5 projects | news.ycombinator.com | 28 Sep 2021
  • The worse production code you have ever seen
    1 project | /r/badcode | 11 Sep 2021
    I do my best https://github.com/DontShaveTheYak/jenkins-std-lib
  • GitHub Actions Limitations and Gotchas
    19 projects | news.ycombinator.com | 8 Sep 2021
    If you use Jenkins and want to try actions then check out https://github.com/DontShaveTheYak/jenkins-std-lib

    It let's you run actions on top of Jenkins.

  • GitHub actions down for some users
    1 project | news.ycombinator.com | 18 Jun 2021

What are some alternatives?

When comparing cache and jenkins-std-lib you can also consider the following projects:

upload-artifact

AutoHotkey - AutoHotkey - macro-creation and automation-oriented scripting utility for Windows.

sccache - Sccache is a ccache-like tool. It is used as a compiler wrapper and avoids compilation when possible. Sccache has the capability to utilize caching in remote storage environments, including various cloud storage options, or alternatively, in local storage.

hbr - handbrake runner - runs HandBrakeCLI with settings specified in a keyfile. Allows for repeatable and easily modified encoding.

act - Run your GitHub Actions locally πŸš€

xmonad - The core of xmonad, a small but functional ICCCM-compliant tiling window manager

actions-runner-controller - Kubernetes controller for GitHub Actions self-hosted runners

roadmap - GitHub public roadmap

setup-buildx-action - GitHub Action to set up Docker Buildx

source-to-image - A tool for building artifacts from source and injecting into container images

checkout - Action for checking out a repo