~starkingdoms/starkingdoms

3ef7a2fac41a7f6e5ab52cdd6633a93450c58a26 — c0repwn3r 2 years ago 01651a3
jenkins CI pt.5
1 files changed, 9 insertions(+), 8 deletions(-)

M Jenkinsfile
M Jenkinsfile => Jenkinsfile +9 -8
@@ 1,21 1,22 @@
pipeline {
    agent any
    agent {
        docker { image 'rust' }
    }

    stages {
        stage('Build') {
        stage('Prepare') {
            steps {
                echo 'Building..'
                sh 'cargo build'
                rustup component add clippy
            }
        }
        stage('Test') {
        stage('Build') {
            steps {
                echo 'Testing..'
                sh 'cargo build'
            }
        }
        stage('Deploy') {
        stage('Clippy') {
            steps {
                echo 'Deploying....'
                sh 'cargo clippy'
            }
        }
    }