Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@ node {

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

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}"
Expand All @@ -16,7 +22,15 @@ node {

docker.image(imgName).inside("-u 0:0") {
sh './install-dev-dependencies.sh'
sh '/bin/bash ./cliqz/build_sign_and_publish.sh '+CLIQZ_CHANNEL

withCredentials([
file(credentialsId: '173621c3-7549-4e29-8005-04175db53e37', variable: 'XPISIGN_CERT'),
file(credentialsId: '3496a127-ea1c-40ab-95ee-7c830dea2a40', variable: 'XPISIGN_PASS'),
[$class: 'AmazonWebServicesCredentialsBinding', accessKeyVariable: 'AWS_ACCESS_KEY_ID', credentialsId: '62c70c1d-7d0a-4eb8-9987-38288ebf25cf', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY'],
file(credentialsId: '368f4e39-a1c0-4e11-bafa-e14be548e3ae', variable: 'BALROG_CREDS')]) {

sh '/bin/bash ./cliqz/build_sign_and_publish.sh '+CLIQZ_CHANNEL
}
}

sh 'rm -rf secure'
Expand Down
12 changes: 6 additions & 6 deletions cliqz/build_sign_and_publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
ADDON_ID=https-everywhere@cliqz.com
CHANNEL=$1
PATH=/openssl-0.9.8zg/apps/:$PATH
SECURE_PATH=./secure/$ADDON_ID
#SECURE_PATH=./secure/$ADDON_ID

if [ $# -eq 0 ];
then
Expand All @@ -29,22 +29,22 @@ DOWNLOAD_URL=https://s3.amazonaws.com/cdncliqz/update/$CHANNEL/https-everywhere/
echo "CLIQZ: sign"
python ./xpi-sign/xpisign.py \
--signer openssl \
--keyfile $SECURE_PATH/certs \
--passin file:$SECURE_PATH/pass \
--keyfile $XPISIGN_CERT \
--passin file:$XPISIGN_PASS \
pkg/$XPI_NAME \
pkg/$SIGNED_XPI_NAME

echo "CLIQZ: upload"
source $SECURE_PATH/upload-creds.sh
#source $SECURE_PATH/upload-creds.sh
aws s3 cp pkg/$SIGNED_XPI_NAME $S3_UPLOAD_URL --acl public-read
echo "XPI uploaded to: ${S3_UPLOAD_URL}"

echo "CLIQZ: publish"
python ./cliqz/submitter.py \
--credentials-file $SECURE_PATH/balrog-creds.txt \
--credentials-file $BALROG_CREDS \
--username balrogadmin \
--api-root http://balrog-admin.10e99.net/api \
--release-channel $CHANNEL \
--addon-id $ADDON_ID \
--addon-version $VERSION \
--addon-url $DOWNLOAD_URL
--addon-url $DOWNLOAD_URL/
2 changes: 1 addition & 1 deletion src/chrome/content/rules/BotBot.me.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- botbot.me

-->
<ruleset name="BotBot.me">
<ruleset name="BotBot.me" default_off='expired certificate'>
<target host="botbot.me" />
<target host="www.botbot.me" />

Expand Down