-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
45 lines (45 loc) · 1.45 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
node('chris') {
withEnv([
'DEVICE=jfltexx',
'SYSTEM_PATH=/home/exodusnick/LineageOS/17.1_LineageOS',
'FILENAME=lineage-17.1-$TARGET_DATE-UNOFFICIAL_microG_ready-$env.DEVICE.zip',
'SEARCH_FILENAME=lineage-17.1-$TARGET_DATE-UNOFFICIAL-$env.DEVICE.zip',
'ROMTYPE="unofficial',
'VERSION=17.1',
'LOCAL_MANIFESTS_URL=https://raw.githubusercontent.com/los-legacy/local_manifests/lineage-17.1/jfltexx.xml',
'LOCAL_MANIFESTS_PATH=.repo/local_manifests',
]) {
stage('Preparation') { // for display purposes
sh """#!/bin/bash
set +e
rm -rf $env.SYSTEM_PATH/$env.LOCAL_MANIFESTS_PATH/*
wget $env.LOCAL_MANIFESTS_URL -O $env.SYSTEM_PATH/$env.LOCAL_MANIFESTS_PATH/jfltexx.xml
"""
}
stage('RepoSync') { // for display purposes
sh """#!/bin/bash
set +e
cd $env.SYSTEM_PATH
export PATH=~/bin:$PATH
repo sync --no-clone-bundle --force-sync
"""
}
stage('Build') { // for display purposes
sh """#!/bin/bash
set +e
cd $env.SYSTEM_PATH
export PATH=~/bin:$PATH
make clean
source build/envsetup.sh
breakfast $env.DEVICE
brunch $env.DEVICE
"""
}
stage('OTA Upload') { // for display purposes
sh """#!/bin/bash
set +e
ls -lah
"""
}
}
}