librecores / librecores-pipeline-lib

Jenkins Pipeline library for LibreCores CI
MIT License
8 stars 6 forks source link

Add support of a default LCCI Image in the `fusesoc()` step #8

Open oleg-nenashev opened 5 years ago

oleg-nenashev commented 5 years ago

In #6 @Nancy-Chauhan introduced a new fusesoc() step which requires to explicitly specify a version of the LibreCores CI to be used. It would be great to support a default version which is managed by Global properties in the library

@Library('librecoresci') _

pipeline {
    stages {
        stage('example-fusesoc-step') {
            fusesoc {
                image 'librecores/librecores-ci:0.5.0'
                library 'some_core', '/src'

                run('some_core') {
                    target 'fusesoc_target'
                }

                shell "echo 'Additional steps on shell'"
            }
        }
    }
}