#jenkins

1 messages · Page 1 of 1 (latest)

exotic eagle
#

đź‘‹

lethal dirge
#

well well well, this seems like someplace I should be

#

(I do more Jenkins than I like lol)

#

I've been building the Dagger vision into a Python script, i.e. it should work locally like it does in CI, so our Jenkins jobs just run this script now.

The one thing holding us up from adopting Dagger is (1) our python version (3.9 < 3.10 required) or (2) deciding to run the Go SDK from python (via exec)

plain badge
#

đź‘‹

plain badge
lethal dirge
#

it's more about the underlying OS version, on the redhat-ish train, so things are behind?

We're technically on 3.6 right now, but will have 3.9 with the next update, 3.10 is not on our radar

#

org policy is just one, consistent operating system for everything

plain badge
vocal osprey
still dagger
#

How do you all use dagger in Jenkins? Do you still make use of the plugins in Jenkins or do you have switched as much as possible to dagger?

tardy moon
plain badge
#

The Dagger docs show a basic implementation for calling your Dagger pipeline. I want to add an end-to-end video and example in the not-too-distant future. There are some good examples on YouTube of when Dagger was CUE-based, but we need an updated example with the multi-language Dagger SDKs. Several people are working on and discussing a #java SDK. Java with Dagger modules (see #daggernauts ) are analogous in many ways to Jenkins plugins and pipeline shared libraries.

simple talon
calm fractal
stable cedar
#

Hello đź‘‹

We've been noticing some issues in Dagger Cloud for displaying traces ran in Jenkins

It seems like the Git metadata we use to set the origin of a trace is incomplete when running Dagger in Jenkins. There is a workaround for this, and we are updating our documentation for it here: https://github.com/dagger/dagger/pull/7776/files

Thanks @next elbow for taking the lead on this!

#

FYI this is a workaround, and we are looking for ways to avoid adding extra configuration to your pipelines to display traces properly in Dagger Cloud

brazen fox
#

We'll cover Jenkins use cases in our community call tomorrow. Come to watch the demo and ask all your questions 🙂 #general message

brazen fox
vague prairie
#

My work setup requires running Jenkins builds inside ephemeral K8S pods https://plugins.jenkins.io/kubernetes/ - here's a snippet of the Jenkinsfile...

        stage('dagger') {
            agent {
                kubernetes {
                    defaultContainer 'dagger'
                    label "${BUILD_LABEL}-dagger"
                    yaml <some-pod-with-dagger-container from registry.dagger.io/engine:v0.14.0>
                }
            }
            stages {
                stage('Build') {
                    steps {
                        sh '''
                            dagger version
                            dagger call ruff --config ./ruff.toml --directory .
                        '''
                    }
                }

This works perfectly fine.. apart from it's just ...too... slow -

+ dagger version
dagger v0.14.0 (registry.dagger.io/engine:v0.14.0) linux/amd64
+ dagger call ruff --config ./ruff.toml --directory .
1   : connect
2   :   connecting to engine
2 
2   :   connecting to engine DONE [0.0s]
1   : connect DONE [0.0s]

3   : loading module
4   :   finding module configuration
4   :   finding module configuration DONE [0.2s]
5   :   serving module
6   :   inspecting module
5   :   serving module DONE [1m35.5s]
6   :   inspecting module DONE [0.3s]
3   : loading module DONE [1m36.1s]

The "loading module" stage is a fixed cost of 1m30 / 2m for each new build. When run with the --debug flag I see all the codegen happening underneath - is there anyway to avoid this startup time? Using the Python SDK so far if that matters.

Kubernetes

This plugin integrates Jenkins with Kubernetes

exotic eagle
#

I wonder if it has something to do with Python. I do this too and the loading (including image pull) happens in like 20s (Which is acceptable to me). I do a dagger core version to pre-"warm" the engine where it pulls the image and starts the engine container. I am using the Go sdk though.

fathom zenith
vague prairie
hallow merlin
#

Hello Everyone,
I’m new to Dagger, I wonder if I can use Dagger to run my Jenkins/Groovy pipelines or if I have to rewrite them all in another language ? Does anyone know the answer ?
Thanks for your help guys !

shrewd oak
dusky elk
#

Hello is there a way to remove these dagger timestamp logs when displaying in Jenkins, for example

32m+[0m[0m {
[32m+[0m[0m config = {}
[32m+[0m[0m name = ...

                                                   },

For example in terraform output logs

exotic eagle