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

Add signing step.

  • Loading branch information
sammacbeth committed Apr 6, 2018
commit 15e9f788be2234b25f64d3bb0422c49428b0389f
@@ -12,6 +12,7 @@ node('docker') {

def img
def artifact
def uploadPath = "cdncliqz/update/ghostery/nightly_test/${env.BRANCH_NAME}/${env.BUILD_NUMBER}"

stage('Build Docker Image') {
img = docker.build('ghostery/build', '--build-arg UID=`id -u` --build-arg GID=`id -g` .')
@@ -38,11 +39,16 @@ node('docker') {
passwordVariable: 'AWS_SECRET_ACCESS_KEY',
usernameVariable: 'AWS_ACCESS_KEY_ID']]) {
echo "${env.BRANCH_NAME}/${env.BUILD_NUMBER}"
def uploadLocation = "s3://cdncliqz/update/ghostery/nightly_test/${env.BRANCH_NAME}/${env.BUILD_NUMBER}/${artifact}"
def uploadLocation = "s3://${uploadPath}/${artifact}"
currentBuild.description = uploadLocation
sh "aws s3 cp build/${artifact} ${uploadLocation} --acl public-read"
}
}

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')]
}
}

def withCache(Closure body=null) {
ProTip! Use n and p to navigate between commits in a pull request.