forked from EFForg/https-everywhere
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathJenkinsfile
32 lines (23 loc) · 1.03 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
node("master") {
stage 'checkout'
checkout([$class: 'GitSCM', branches: [[name: '*/cliqz-ci']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: '../workspace@script/xpi-sign']], submoduleCfg: [], userRemoteConfigs: [[credentialsId: XPI_SIGN_CREDENTIALS, url: XPI_SIGN_REPO_URL]]])
stage 'build'
def imgName = "cliqz-oss/https-everywhere:${env.BUILD_TAG}"
def balrogCredentialsID = '774bccf1-ae66-41e1-9f2e-f8efb4bedc21'
dir("../workspace@script") {
sh 'rm -fr secure'
sh 'cp -R /cliqz secure'
docker.build(imgName, ".")
withCredentials([
usernamePassword(
credentialsId: balrogCredentialsID,
passwordVariable: 'BALROG_PASSWORD',
usernameVariable: 'BALROG_ADMIN')]) {
docker.image(imgName).inside("-u 0:0") {
sh './install-dev-dependencies.sh --no-prompt'
sh '/bin/bash ./cliqz/build_sign_and_publish.sh '+CLIQZ_CHANNEL
}
}
sh 'rm -rf secure'
}
}