Page MenuHomeDevCentral

Improve Jenkins workflow
Needs ReviewPublic

Authored by dereckson on Sep 20 2021, 18:23.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 27, 15:13
Unknown Object (File)
Fri, Mar 22, 03:22
Unknown Object (File)
Sun, Mar 17, 03:09
Unknown Object (File)
Sat, Mar 16, 15:30
Unknown Object (File)
Sun, Mar 3, 21:18
Unknown Object (File)
Fri, Mar 1, 15:27
Unknown Object (File)
Fri, Mar 1, 14:46
Unknown Object (File)
Feb 15 2024, 08:25
Subscribers
None

Details

Reviewers
dereckson
Summary

Checkout stage isn't needed if we use Jenkinsfile at repo level,
as the repo is already cloned to read it.

Cargo update allows to ensure we've fresh dependencies before
building.

Test Plan

Replay a job with this Jenkinsfile content on cd.nasqueron.org

Diff Detail

Repository
rLF Limiting Factor
Lint
Lint Passed
Unit
No Test Coverage
Branch
upgrade-jenkinsfile
Build Status
Buildable 3786
Build 4036: arc lint + arc unit

Event Timeline

dereckson created this revision.

Preparing a generic deploy documentation script from the one for Docker Registy API doc, so we can add a call to:

deploy-nasqueron-doc limiting-factor rust rust/ afterwards.

Jenkinsfile
7
stage('Cargo doc') {
    agent {
        label "rust"
    }
    steps {
        sh '''
        cargo doc --no-deps
        cd target/doc
        tar czf ../doc-rust.tar.gz *
        '''
    }
    post {
        success {
            archiveArtifacts artifacts: 'target/doc-rust.tar.gz'
        }
    }
}