forked from ghostery/browser-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile.docker
33 lines (28 loc) · 1001 Bytes
/
Jenkinsfile.docker
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
#!/bin/env groovy
node('us-east-1 && ubuntu && docker && !gpu') {
def dockerTag
stage('Checkout') {
checkout scm
dockerTag = readFile('mozilla-release/browser/config/version.txt').trim()
}
def baseImageName = "browser-f/android:${dockerTag}"
stage('Build Create Docker Image') {
docker.withRegistry('https://141047255820.dkr.ecr.us-east-1.amazonaws.com'){
def baseImage = docker.build(baseImageName, '--build-arg USER=`whoami` --build-arg UID=`id -u` --build-arg GID=`id -g` .')
baseImage.push dockerTag
}
}
docker.image("141047255820.dkr.ecr.us-east-1.amazonaws.com/${baseImageName}").inside {
stage('Check All Versions') {
sh '''#!/bin/bash -l
set -x
python --version
ruby --version
pip --version
adb version
mvn -version
appium --version
'''
}
}
}