Page MenuHomeDevCentral

Improve Jenkins workflow
Needs ReviewPublic

Authored by dereckson on Sep 20 2021, 18:23.

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 OK
Unit
No Unit 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'
        }
    }
}