Skip to content

04-build.sh: Add cleanup logic for Google devices#1

Open
Ssijwagon2 wants to merge 6 commits intoEvolution-X-Jenkins:mainfrom
Ssijwagon2:main
Open

04-build.sh: Add cleanup logic for Google devices#1
Ssijwagon2 wants to merge 6 commits intoEvolution-X-Jenkins:mainfrom
Ssijwagon2:main

Conversation

@Ssijwagon2
Copy link
Copy Markdown

No description provided.

    agent any

    stages {
        stage('Remove Old Device Trees') {
            steps {
                dir('/evo') {
                    sh '''
                    /home/shared/scripts/14/01-preclean.sh
                    '''
                }
            }
        }
        stage('Initialise Repo') {
            steps {
                dir('/evo') {
                    sh '''
                    /home/shared/scripts/14/02-init.sh
                    '''
                }
            }
        }
        stage('Clean Working Directory') {
            steps {
                dir('/evo') {
                    sh '''
                    /home/shared/scripts/14/03-clean.sh ${JOB_BASE_NAME}
                    '''
                }
            }
        }
        stage('Build ROM') {
            steps {
                dir('/evo') {
                    sh '''
                    /home/shared/scripts/14/04-build.sh ${JOB_BASE_NAME}
                    '''
                    script {
                        def artifactPath1 = "evolution/OTA/builds/${JOB_BASE_NAME}.json"
                        def artifactPath2 = "evolution/OTA/changelogs/${JOB_BASE_NAME}.txt"

                        archiveArtifacts artifacts: "${artifactPath1}, ${artifactPath2}", allowEmptyArchive: true
                    }
                }
            }
        }
        stage('Upload Artifacts') {
            steps {
                dir('/evo') {
                    sh '''
                    /home/shared/scripts/14/05-upload.sh ${JOB_BASE_NAME}
                    '''
                }
            }
        }
    }
}
device mustang
@Ssijwagon2 Ssijwagon2 marked this pull request as draft April 3, 2026 19:27
@Ssijwagon2 Ssijwagon2 marked this pull request as ready for review April 3, 2026 19:27
@Ssijwagon2 Ssijwagon2 closed this Apr 3, 2026
@Ssijwagon2 Ssijwagon2 reopened this Apr 3, 2026
@Ssijwagon2 Ssijwagon2 marked this pull request as draft April 3, 2026 20:17
@Ssijwagon2 Ssijwagon2 marked this pull request as ready for review April 3, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant