Page MenuHomeDevCentral

Improve Jenkins workflow
Needs ReviewPublic

Authored by dereckson on Sep 20 2021, 18:23.
Tags
None
Referenced Files
F3764816: D2437.diff
Fri, Nov 22, 08:36
Unknown Object (File)
Mon, Nov 18, 02:52
Unknown Object (File)
Mon, Nov 18, 02:52
Unknown Object (File)
Mon, Nov 18, 02:22
Unknown Object (File)
Mon, Nov 18, 02:22
Unknown Object (File)
Fri, Oct 25, 04:06
Unknown Object (File)
Oct 20 2024, 14:05
Unknown Object (File)
Oct 20 2024, 09:35
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'
        }
    }
}