jenkins-std-lib
gitignore
jenkins-std-lib | gitignore | |
---|---|---|
14 | 286 | |
48 | 158,249 | |
- | 0.9% | |
0.0 | 0.0 | |
6 days ago | 8 days ago | |
Groovy | ||
GNU General Public License v3.0 only | Creative Commons Zero v1.0 Universal |
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.
jenkins-std-lib
-
The worst thing about Jenkins is that it works
> 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
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
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
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
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?
- Ask HN: Where are all the Show HNs?
-
The worse production code you have ever seen
I do my best https://github.com/DontShaveTheYak/jenkins-std-lib
-
GitHub Actions Limitations and Gotchas
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
gitignore
-
Streamlining Software Development: The Power of .gitignore Templates
In conclusion, the Gitignore repository stands as a testament to the power of collective knowledge and collaboration in software development. By providing a centralized repository of .gitignore templates, it empowers developers to streamline their workflow, maintain cleaner repositories, and focus on what they do best – writing exceptional code. As the software development landscape continues to evolve, the significance of .gitignore templates as indispensable tools for developers is set to endure.
-
Release 0.12.0 of stevedore - minor feature enhancement
The challenge here was actually from my #48in28 Exercism participation, where I am pretty familiar the standard layout for some repositories since I am familiar with tooling and language, working with new languages does not come with the same familiarity, so I found it made sense to use canonical definitions, hence the use of github/gitignore.
-
How to Use Environment Variables in Node.js
Add .env to your .gitignore file to prevent it from being committed. Here's an example file with it already added. You may also use dotenv for advanced configuration and it will automatically load environment variables from a .env file into process.env.
-
Git Lesson: How to Use .gitignore and .gitkeep?
Here you can find ready-made .gitignore templates for various technologies and languages such as Python, Java, Kotlin, Go, and many others: https://github.com/github/gitignore/tree/main.
-
New to Git/GitHub/Terraform, some questions about Terraform and pushing to GitHub
You could also use this git ignore template. Create you .gitignore and add the contents from that file in.
-
Is there a free way to use unity for creating group projects?
I've only used free Unity with GitHub or GitLab, professionally and reaching back into internships. One recommendation would be to use a slightly longer .gitignore than the default, like this one.
-
Basic Python Project Layout
Virtual Environments are a feature that has been part of python itself since version 3.3. It allows you to isolate both a python version and any packages you install with it. Every python project I develop with uses a virtual environment for such isolation purposes. Now I generally like to create these virtual environments inside the target project's directory so I know exactly what it's tied to. If you use GitHub's python gitignore file naming the virtual environment folder as venv or .venv will ensure it doesn't get committed (which you don't want). So I'll make a new project folder and create a virtual environment inside of it:
-
Node.js 20.6.0 will include built-in support for .env files
Especially considering the GitHub .gitignore template for Node only ignores .env.local, not .local.env: https://github.com/github/gitignore/blob/main/Node.gitignore...
- Where can I find common .gitignores for C# Web API projects?
-
Unable to push to github via github desktop. I added it to GitIgnore and it yielded another issue
# Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore
What are some alternatives?
AutoHotkey - AutoHotkey - macro-creation and automation-oriented scripting utility for Windows.
terragrunt - Terragrunt is a thin wrapper for Terraform that provides extra tools for working with multiple Terraform modules.
hbr - handbrake runner - runs HandBrakeCLI with settings specified in a keyfile. Allows for repeatable and easily modified encoding.
git-lfs - Git extension for versioning large files
cache - Cache dependencies and build outputs in GitHub Actions
bfg-repo-cleaner - Removes large or troublesome blobs like git-filter-branch does, but faster. And written in Scala
roadmap - GitHub public roadmap
gitlab
xmonad - The core of xmonad, a small but functional ICCCM-compliant tiling window manager
parcel - The zero configuration build tool for the web. 📦🚀
source-to-image - A tool for building artifacts from source and injecting into container images
gitignore.plugin.zsh - ZSH plugin for creating .gitignore files.