Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated extension builds #32

Merged
merged 12 commits into from Apr 10, 2018
Make browser-core log.
  • Loading branch information
sammacbeth committed Apr 9, 2018
commit 24d8cbcb7ba3c9dd4864f1c053430251e4d3f051
@@ -1,6 +1,5 @@
FROM node:8

#RUN npm install -g web-ext
RUN curl https://s3.amazonaws.com/cdncliqz/update/ghostery/moab/moab_2 > /bin/moab && \
chmod +x /bin/moab

@@ -20,15 +20,17 @@ node('docker') {

stage('Build Extension') {
img.inside() {
withCache {
sh 'rm -r build'
if (params.WITH_CLIQZ_MASTER) {
sh 'npm install --save https://s3.amazonaws.com/cdncliqz/update/edge/ghostery/master/latest.tgz'
}
sh 'moab makezip'
// get the name of the firefox build
artifact = sh(returnStdout: true, script: 'ls build/ | grep firefox').trim()
withCache {
sh 'rm -rf build'
if (params.WITH_CLIQZ_MASTER) {
sh 'npm install --save https://s3.amazonaws.com/cdncliqz/update/edge/ghostery/master/latest.tgz'
}
// make browser-core noisy
sh 'sed -i \'s/global.__DEV__/true/1\' node_modules/browser-core/build/core/console.js'
sh 'moab makezip'
// get the name of the firefox build
artifact = sh(returnStdout: true, script: 'ls build/ | grep firefox').trim()
}
}
}

@@ -47,7 +49,11 @@ node('docker') {

stage('Sign and Publish') {
def artifactUrl = "https://s3.amazonaws.com/${uploadPath}/${artifact}"
build job: 'addon-repack', parameters: [string(name: 'XPI_URL', value: artifactUrl), string(name: 'XPI_SIGN_CREDENTIALS', value: '41572f9c-06aa-46f0-9c3b-b7f4f78e9caa'), string(name: 'XPI_SIGN_REPO_URL', value: 'git@github.com:cliqz/xpi-sign.git')]
build job: 'addon-repack', parameters: [
string(name: 'XPI_URL', value: artifactUrl),
string(name: 'XPI_SIGN_CREDENTIALS', value: '41572f9c-06aa-46f0-9c3b-b7f4f78e9caa'),
string(name: 'XPI_SIGN_REPO_URL', value: 'git@github.com:cliqz/xpi-sign.git')
]
}
}

ProTip! Use n and p to navigate between commits in a pull request.