DSCI – [D]ead [S]imple CI

πŸš€ Check out this must-read post from Hacker News πŸ“–

πŸ“‚ **Category**:

πŸ“Œ **What You’ll Learn**:

job-artifacts


# Job Artifacts

DSCI dramatically simplify working with artifacts
process inside pipelines.

To create artifact file just create it in `~/artifacts/`
directory in some task file, for example:

“`bash
#!/bin/bash

echo “DSCI is cool” > ~/artifacts.txt
“`

The the next job will see it in the same directory:

“`python
#!/usr/bin/python3

from pathlib import Path

file_path = Path.home() / “artifacts.txt”

# 2. Read the file safely using a context manager
try:
with open(file_path, “r”, encoding=”utf-8″) as file:
content = file.read()
print(content)
except FileNotFoundError:
print(f”Error: The file at πŸ’¬ was not found.”)
“`

That’s it. Artifacts de-facto is any file located in `~/artifacts` dir,

If some job decides to remove a file from `~/artifacts/` it won’t be available for the next
jobs.

So artifacts works as a pipeline data buffer

πŸ’¬ **What’s your take?**
Share your thoughts in the comments below!

#️⃣ **#DSCI #Dead #Simple**

πŸ•’ **Posted on**: 1787235572

🌟 **Want more?** Click here for more info! 🌟

By

Leave a Reply

Your email address will not be published. Required fields are marked *