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

Feat: api reference transfer #1

Merged
merged 1,017 commits into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1017 commits
Select commit Hold shift + click to select a range
62081ad
Update _segments.md.erb
aveprikov Jan 18, 2021
68175ba
update doc about segments
Jan 18, 2021
c16592a
notification about order id
Jan 18, 2021
ecaec18
add iOS profile set
Jan 19, 2021
e42f808
did support
Jan 19, 2021
41b686e
did support
Jan 19, 2021
4c554d3
remove unnecessary loyalty_id
Jan 19, 2021
7d94613
remove loyalty_id from request
Jan 21, 2021
80e85d5
update multi campaign api
Jan 24, 2021
5e1660c
move loyalty id to common params
Jan 25, 2021
4dde787
no_clarification flag
Jan 26, 2021
71fac1a
no_clarification flag
Jan 26, 2021
a3dc7c3
Update _recommendations.md.erb
aveprikov Jan 28, 2021
ba6952d
Update _recommendations.md.erb
aveprikov Jan 28, 2021
b1a4790
Update _recommendations.md.erb
aveprikov Jan 28, 2021
abe08ea
Update _recommendations.md.erb
aveprikov Jan 28, 2021
5855bea
Update _recommendations.md.erb
aveprikov Jan 28, 2021
f7ee45a
swift recommendations and search
Jan 28, 2021
c8e700a
tokens and profile swift
Jan 28, 2021
ef23160
chat reports endpoint
Feb 1, 2021
6a2eea4
typo
Feb 1, 2021
7526bdf
timezone added
Feb 2, 2021
5384a33
fix notice
Feb 2, 2021
669f631
add channel descriptions
Feb 4, 2021
09879c1
filter by channel
Feb 4, 2021
66e60f2
send everywhere parameter
Feb 8, 2021
b65a2e9
add bonuses
Feb 9, 2021
97b1576
external unsubscribe channel
Feb 9, 2021
2b103e6
unsubscribed callback
Feb 9, 2021
518b70b
remove wrong var
Feb 9, 2021
f86846b
update response
Feb 11, 2021
6201b0b
add track mobile push
Feb 15, 2021
b3c5bef
track notification clicked
Feb 16, 2021
7e7b231
Update _orders.md.erb
aveprikov Feb 19, 2021
2bc3fab
Update _orders.md.erb
aveprikov Feb 19, 2021
afc8b4b
remove r46 name
Feb 23, 2021
891c5b6
add birthday to search
Feb 26, 2021
eea3110
filter by date https://y.mkechinov.ru/issue/REES-6609
Feb 26, 2021
0fd14e3
update endpoint
Mar 1, 2021
9cbb3f2
Create _triggers.md.erb
aveprikov Mar 2, 2021
1453912
Update index.html.md
aveprikov Mar 2, 2021
13c80dc
Update _triggers.md.erb
aveprikov Mar 2, 2021
e9b2eed
Update _triggers.md.erb
aveprikov Mar 2, 2021
19e88d7
/orders/last_for_user
Mar 9, 2021
f18002c
add streams
Mar 14, 2021
76bdf7b
https://y.mkechinov.ru/issue/REES-6648 documentation
Mar 21, 2021
5beb350
https://y.mkechinov.ru/issue/REES-6648 add id
Mar 21, 2021
7adb495
not mandatory seance
Mar 26, 2021
8be9d73
custom events tracking
Apr 6, 2021
44d69f7
fix params
Apr 6, 2021
6309dee
android sdk custom events tracking
Apr 7, 2021
390cf2f
custom events tracking in ios
Apr 12, 2021
26a2650
fix location for mutable content
Apr 14, 2021
03a3053
move mutable content
Apr 14, 2021
1ccadab
fix aps structure
Apr 14, 2021
fa432e7
fix notification tracking
Apr 30, 2021
a968bb7
partially added RN examples
May 4, 2021
6236612
added RN examples
May 4, 2021
a8dca72
fix search example
May 4, 2021
0686309
return additional emails/phones/loyalties REES-6772
May 24, 2021
ebc5504
Added bonuses management method
May 31, 2021
cd1b548
Added bonuses management method
May 31, 2021
875f553
Added menu item
May 31, 2021
29ed305
Fix param name
May 31, 2021
d14cb3b
Fix param name
May 31, 2021
7b2e7be
Fix did description in _profile.md
Jun 3, 2021
7c91a5a
Add param purchase_date in _bonuses.md
Jun 18, 2021
170aae9
Add pagination params in _recommendations.md.erb
Jun 30, 2021
2cfb826
spec to change emails
Jul 4, 2021
521c049
change value type
Jul 4, 2021
71546cc
Add categories
Jul 23, 2021
107086c
Menu edit (categories added)
Jul 23, 2021
15a1a91
Fix title
Jul 23, 2021
7be9232
Fix categories
Jul 23, 2021
07f23a0
Communication's save method added
Jul 30, 2021
93f0a66
Remove escaping
Jul 30, 2021
73bbdd5
Communication's read method added
Jul 30, 2021
3b41f8e
Fix param name
Aug 4, 2021
ebc7aad
Add edit method to communication
Aug 13, 2021
851508d
add subject_appeal param
Aug 19, 2021
f62a8fc
product_available and product_price_decrease methods added
isvsergeev Aug 30, 2021
2ef65fe
method name fix
isvsergeev Aug 30, 2021
c74fd07
method name fix
isvsergeev Sep 10, 2021
19821c1
custom domain for url shortener
noff Sep 17, 2021
0db4e52
Add full search JS query and api response
isvsergeev Sep 22, 2021
9d47da9
Add instant search JS query
isvsergeev Sep 22, 2021
8eca651
return current segment
noff Sep 25, 2021
38461a5
Add android method for get user segment
isvsergeev Sep 26, 2021
06e31bc
Add params to custom event tracking
isvsergeev Sep 29, 2021
9ae1ff3
Add params to custom event tracking
isvsergeev Sep 29, 2021
1cf69e3
Fix request
isvsergeev Sep 29, 2021
9c4f022
Add size param to back in stock subscription method
isvsergeev Sep 29, 2021
25c2794
Fix params table
isvsergeev Sep 29, 2021
f607c55
show exists flag
noff Oct 5, 2021
47f7e59
change order status
noff Nov 11, 2021
f8af87f
deploy to new master
Nov 11, 2021
d1c505b
Copy get_segment method to Segments section
Nov 18, 2021
be024ea
Merge remote-tracking branch 'origin/main' into main
Nov 18, 2021
5bcb7f9
add email/phone filter
noff Nov 24, 2021
d024011
Update _subscriptions.md.erb
PNixx Nov 24, 2021
774732c
Force change phone
noff Nov 29, 2021
4277bd7
Remove actions from Android app push data (open web link)
Nov 30, 2021
62d1985
Merge pull request #2 from PNixx/patch-1
noff Dec 17, 2021
cbd78db
update import audience with mobile push token
PNixx Dec 29, 2021
a5e8bd6
subscriptions push
PNixx Jan 17, 2022
95c4c96
Merge pull request #4 from PNixx/main
isvsergeev Jan 17, 2022
6715a9a
subscriptions push check
PNixx Jan 17, 2022
4059c68
tax_free
PNixx Jan 26, 2022
e81fe6c
tax_free
PNixx Jan 26, 2022
5666724
update transaction endpoint
PNixx Jan 28, 2022
a5a8e58
Add request examples with JSON
Feb 1, 2022
871fe23
jenkins deploy
PNixx Feb 3, 2022
ed48ebd
fix jenkins deploy
PNixx Feb 3, 2022
5f8b5ff
Add stream to init in JS SDK
Feb 15, 2022
bb0cbcd
DEV-T-460 order columns
PNixx Feb 15, 2022
a8a1571
Add priority to load main script
Feb 17, 2022
6f1de19
Add transactionals
Mar 4, 2022
51e5e12
Add http api method to price drop and back in stock triggers
Mar 4, 2022
9434c48
Update android methods and add swift full cart example
Mar 4, 2022
24d416c
Fix android class var
Mar 4, 2022
bcbb82b
Fix android class var
Mar 4, 2022
9b80268
Fix android class name in config
Mar 4, 2022
116d413
Change android package name to var in init
Mar 4, 2022
ca481dc
Change android package name to var
Mar 4, 2022
8942ea0
Remove old ios cart tracking
Mar 9, 2022
1bd9e19
Add java profile.set example
Mar 14, 2022
4c69b93
Add phone, did to price-drop and back-in-stock params table
Mar 16, 2022
a4a40c5
subscribe for back in stock and price drop in iOS
noff Mar 16, 2022
0195a3e
update push data
PNixx Mar 18, 2022
a84b93d
deprecated
PNixx Mar 21, 2022
877f6d7
Change quote
Mar 29, 2022
ed63c45
Fix CDN domain
Apr 22, 2022
e253b29
change tracking endpoint
PNixx Apr 29, 2022
beabc37
java subscribe price drop & back in stock
PNixx May 4, 2022
b785009
DEV-T-556 java subscribe price drop & back in stock
PNixx May 4, 2022
a003a39
remove notice
PNixx May 6, 2022
b63f6ed
Change orders sync description
May 6, 2022
2dc9203
Fix tables
May 6, 2022
945d448
Change rees46.com to rees46.ru domain in config
May 11, 2022
90c42bf
purchase with barcode, line_id
PNixx May 12, 2022
89d2728
remove barcode from purchase
PNixx May 12, 2022
04135fe
update events to json
PNixx May 16, 2022
d8ff7dd
Add time to custom event tracking
May 16, 2022
1968d26
fix rn sdk
PNixx May 17, 2022
59b43e9
Fix time in custom event tracking
May 19, 2022
1babbe4
Add barcode to back in stock trigger
May 19, 2022
cd4a0c7
Fix description
May 19, 2022
9aebf2a
DEV-T-619 update orders import value, DEV-T-460 payment structure
PNixx May 24, 2022
4449a6b
DEV-T-619 update orders import value, DEV-T-460 payment structure
PNixx May 24, 2022
536efe9
Add counters method
May 30, 2022
cbd537a
Fix init method variable
May 31, 2022
19fd221
Fix init method endpoint
May 31, 2022
5aec879
Fix init method endpoint
May 31, 2022
669a23b
add search event
noff Jun 29, 2022
ba3f4e6
Add loyalty program
Jun 30, 2022
52c3d62
Add methods to loyalty program
Jul 4, 2022
40a0cd5
Fix param and response example
Jul 5, 2022
48a5b28
Fix required attribute in param
Jul 20, 2022
d189c9f
Change field type for tracking
Aug 16, 2022
2a42f4c
Add example for android subscribeForBackInStock method
Aug 17, 2022
8426430
Fix method
Aug 17, 2022
2dbedae
fix podfile
noff Sep 6, 2022
3c48a8d
Merge remote-tracking branch 'origin/main'
noff Sep 6, 2022
3f66798
addToSegment and removeFromSegment methods for iOS
noff Sep 6, 2022
4f346e7
manage subscription in iOS SDK
noff Sep 7, 2022
a877cdc
move ios manage example to the correct section
noff Sep 7, 2022
d6eab08
Add mobile push recieved and closed events
Sep 12, 2022
86356fe
Fix comments
Sep 12, 2022
0f17e52
Fix android methods
Sep 12, 2022
a237c59
Fix android methods
Sep 12, 2022
c5576d6
Change RN SDK METHOD
Sep 12, 2022
182b52f
Add RN SDK method for back in stock
Sep 13, 2022
abea595
added sample code for full cart in react native
mrLiocha Sep 16, 2022
8817311
Change param `sort_dir` to `order`
Sep 19, 2022
d661379
Add instant search response table
Sep 20, 2022
ab508fb
fix simple product view
noff Sep 26, 2022
c8d767c
Fix ios tracking methods
Oct 10, 2022
72855ae
new android sdk methods
PNixx Oct 13, 2022
efaf040
Add reputation method
Nov 15, 2022
17b8b40
Fix title
Nov 15, 2022
ce65bf2
add email confirmed flag
noff Nov 16, 2022
b90084c
fix table
noff Nov 16, 2022
80c29af
update example
noff Nov 16, 2022
952e436
add offset/limit to subscriptions/changes method
noff Nov 24, 2022
7e7656c
Add locations param to categories
Dec 1, 2022
0d83309
Add dynamic filter guide for category
Dec 1, 2022
8c065dc
Fix nav
Dec 1, 2022
bfb227e
DEV-T-1271 add orders/by_user method
noff Dec 18, 2022
d02a9e3
update decrease bonuses method
mrLiocha Dec 22, 2022
44ec3dd
Add email and phone to purchase tracking
Jan 9, 2023
fe063af
DEV-T-1349 Создать API метод, который позволит получить массив id тов…
noff Jan 17, 2023
d87df2a
ios sdk support line item price tracking
noff Jan 25, 2023
2a8d779
fix deploy rvm
PNixx Jan 25, 2023
b7eafe4
fix deploy rvm
PNixx Jan 25, 2023
59e13fd
fix deploy
PNixx Jan 25, 2023
acc6924
update android docs
PNixx Feb 8, 2023
718ddf5
Remove available delivery types
Feb 9, 2023
076d4e1
update pod install
noff Feb 9, 2023
484b198
update pod install
noff Feb 9, 2023
840aa27
typo
noff Feb 9, 2023
0a930a5
ios add to cart with amount
noff Feb 13, 2023
9f3cba9
added examples of custom fields to the profile set
Liocha Feb 20, 2023
0abb0e7
adjusting the date format in the example
Liocha Feb 20, 2023
d1526c1
improved the date format in the example
Liocha Feb 20, 2023
79c389c
Comment REST methods
Mar 15, 2023
0334024
Remove HTTP examples
Mar 15, 2023
6abd1c1
Remove HTTP examples
Mar 31, 2023
245d380
DEV-T-1283 Доработать метод запроса списков промокодов
noff Apr 11, 2023
cfecc20
Add locations param fo instant_search
Apr 19, 2023
9a0b0ab
Add request product list
Jun 27, 2023
f65f0f4
add `includes` method
noff Jul 2, 2023
1329a58
Add categories for products method
Jul 3, 2023
362ddbc
Add examples for products method
Jul 3, 2023
d30fb4a
Add boolean filters example for products method
Jul 3, 2023
95e4ef1
show payable_amount
noff Jul 3, 2023
c91ed06
Add merchants filter example for products method
Jul 4, 2023
efb9b85
Fix label
Jul 4, 2023
ef570cb
announce notifications center
noff Jul 10, 2023
8434cb9
add type parameter
noff Jul 18, 2023
6eed765
add channel filter
noff Jul 18, 2023
7c7b934
add channel to examples
noff Jul 19, 2023
2cb7377
Update profile.get method
Jul 19, 2023
4906323
Update profile.get method
Jul 19, 2023
3d91e14
add page and limit to notifications controller
noff Jul 28, 2023
d5c48c6
Add params to Manage subscriptions method
Jul 31, 2023
f459dee
fixed domain
Liocha Aug 4, 2023
7e44792
DEV-T-2085 - update swift method example
Aug 8, 2023
b0cd264
DEV-T-1932 - add stories page
Aug 8, 2023
08be78a
DEV-T-1932 - fix layout
Aug 8, 2023
a9e43c1
DEV-T-2085 - fix manageSubscription ios method
Aug 14, 2023
798be9d
DEV-T-1936 - Change swift example
Aug 24, 2023
463dc42
added Increase bonuses
Liocha Aug 24, 2023
108014e
DEV-T-926 - Add jsx example
Sep 11, 2023
4e026aa
added response for transactional messages
Liocha Oct 3, 2023
4b59349
DEV-T-1936 - Update ios example
Oct 26, 2023
f82aa2e
Change seance to sid
Oct 30, 2023
90a33a3
DEV-T-2424 - update doc
Nov 14, 2023
71e37fa
DEV-T-1888 - update doc
Nov 15, 2023
394fd8f
DEV-T-2483 - update doc
Dec 1, 2023
29bb70e
DEV-T-2483 - Add JS SDK method
Dec 11, 2023
5491a40
DEV-T-2105 - Update doc
Dec 21, 2023
8aad9b3
persona new server
Dec 26, 2023
4379eb3
SUPPORT-T-48 - Update doc
Jan 11, 2024
c01d677
DEV-T-1933 - Update doc
Jan 18, 2024
6abdcb7
DEV-T-2499 - Update doc
Jan 22, 2024
a1124f1
DEV-T-1377 - Update doc
Jan 25, 2024
28ed9da
DEV-T-2636 - Update doc
Jan 29, 2024
7528116
PRO-T-64 - Update doc
Feb 22, 2024
c682b14
feat: license
Nelfimov Mar 29, 2024
f7eea95
chore: remove templates and configs
Nelfimov Mar 29, 2024
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
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build/
.github/
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# EditorConfig is awesome: https://EditorConfig.org

# Top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true

[*.rb]
charset = utf-8

[*.md]
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source/javascripts/lib/* linguist-vendored
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build

on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
ruby-version: [2.3, 2.4, 2.5, 2.6, 2.7]

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}

- uses: actions/cache@v1
with:
path: vendor/bundle
key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}

# necessary to get ruby 2.3 to work nicely with bundler vendor/bundle cache
# can remove once ruby 2.3 is no longer supported
- run: gem update --system

- run: bundle config set deployment 'true'
- run: bundle install

- run: bundle exec middleman build
34 changes: 34 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy

on:
push:
branches: [ 'main' ]

jobs:
deploy:
runs-on: ubuntu-latest
env:
ruby-version: 2.5

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.ruby-version }}

- uses: actions/cache@v1
with:
path: vendor/bundle
key: gems-${{ runner.os }}-${{ env.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}

- run: bundle config set deployment 'true'
- run: bundle install

- run: bundle exec middleman build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
*.gem
*.rbc
.bundle
.config
coverage
InstalledFiles
lib/bundler/man
pkg
rdoc
spec/reports
test/tmp
test/version_tmp
tmp
*.DS_STORE
build/
.cache
.vagrant
.sass-cache

# YARD artifacts
.yardoc
_yardoc
doc/
.idea/

# Vagrant artifacts
ubuntu-*-console.log
.idea
*.iml
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.7.0
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Changelog

Empty, sorry.
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM ruby:2.6-slim

WORKDIR /srv/slate

VOLUME /srv/slate/source
EXPOSE 4567

COPY . /srv/slate

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
nodejs \
&& gem install bundler \
&& bundle install \
&& apt-get remove -y build-essential \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*

CMD ["bundle", "exec", "middleman", "server", "--watcher-force-polling"]
12 changes: 12 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ruby '>=2.3.1'
source 'https://rubygems.org'

# Middleman
gem 'middleman', '~>4.3'
gem 'middleman-syntax', '~> 3.2'
gem 'middleman-autoprefixer', '~> 2.7'
gem 'middleman-sprockets', '~> 4.1'
gem 'rouge', '~> 3.20'
gem 'redcarpet', '~> 3.5.0'
gem 'nokogiri', '~> 1.10.8'
gem 'sass'
134 changes: 134 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (5.2.4.3)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
autoprefixer-rails (9.5.1.1)
execjs
backports (3.17.2)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.1.6)
contracts (0.13.0)
dotenv (2.7.5)
erubis (2.7.0)
execjs (2.7.0)
fast_blank (1.0.0)
fastimage (2.1.7)
ffi (1.12.2)
haml (5.1.2)
temple (>= 0.8.0)
tilt
hamster (3.0.0)
concurrent-ruby (~> 1.0)
hashie (3.6.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
kramdown (1.17.0)
listen (3.0.8)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
memoist (0.16.2)
middleman (4.3.7)
coffee-script (~> 2.2)
haml (>= 4.0.5)
kramdown (~> 1.2)
middleman-cli (= 4.3.7)
middleman-core (= 4.3.7)
middleman-autoprefixer (2.10.1)
autoprefixer-rails (~> 9.1)
middleman-core (>= 3.3.3)
middleman-cli (4.3.7)
thor (>= 0.17.0, < 2.0)
middleman-core (4.3.7)
activesupport (>= 4.2, < 6.0)
addressable (~> 2.3)
backports (~> 3.6)
bundler
contracts (~> 0.13.0)
dotenv
erubis
execjs (~> 2.0)
fast_blank
fastimage (~> 2.0)
hamster (~> 3.0)
hashie (~> 3.4)
i18n (~> 0.9.0)
listen (~> 3.0.0)
memoist (~> 0.14)
padrino-helpers (~> 0.13.0)
parallel
rack (>= 1.4.5, < 3)
sassc (~> 2.0)
servolux
tilt (~> 2.0.9)
uglifier (~> 3.0)
middleman-sprockets (4.1.1)
middleman-core (~> 4.0)
sprockets (>= 3.0)
middleman-syntax (3.2.0)
middleman-core (>= 3.2)
rouge (~> 3.2)
mini_portile2 (2.4.0)
minitest (5.14.1)
nokogiri (1.10.9)
mini_portile2 (~> 2.4.0)
padrino-helpers (0.13.3.4)
i18n (~> 0.6, >= 0.6.7)
padrino-support (= 0.13.3.4)
tilt (>= 1.4.1, < 3)
padrino-support (0.13.3.4)
activesupport (>= 3.1)
parallel (1.19.1)
public_suffix (4.0.5)
rack (2.2.3)
rb-fsevent (0.10.4)
rb-inotify (0.10.1)
ffi (~> 1.0)
redcarpet (3.5.0)
rouge (3.20.0)
sass (3.7.4)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sassc (2.3.0)
ffi (~> 1.9)
servolux (0.13.0)
sprockets (3.7.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
temple (0.8.2)
thor (1.0.1)
thread_safe (0.3.6)
tilt (2.0.10)
tzinfo (1.2.7)
thread_safe (~> 0.1)
uglifier (3.2.0)
execjs (>= 0.3.0, < 3)

PLATFORMS
ruby

DEPENDENCIES
middleman (~> 4.3)
middleman-autoprefixer (~> 2.7)
middleman-sprockets (~> 4.1)
middleman-syntax (~> 3.2)
nokogiri (~> 1.10.8)
redcarpet (~> 3.5.0)
rouge (~> 3.20)
sass

RUBY VERSION
ruby 2.3.3p222

BUNDLED WITH
2.1.4
74 changes: 74 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
import groovy.json.JsonOutput
SUCCESS_STAGE = 'build'
STEPS = 'build Testing REES46 PersonaClick Kameleoon'
def stepPublisher(step, style) {
rabbitMQPublisher(rabbitName: 'rabbit', exchange: '', routingKey: 'notification', conversion: false,
data: JsonOutput.toJson([type: "deploy", project: JOB_NAME, style: style, step: step, message: GIT_COMMIT_MSG, commit: GIT_COMMIT, url: COMMIT_URL, author: GIT_COMMIT_AUTHOR, console: "${BUILD_URL}console", steps: STEPS]))
}

pipeline {
agent any

stages {
stage('Build') {
steps {
sh 'bin/prepare_for_jenkins'
script {
env.GIT_COMMIT_MSG = sh (script: 'git log -1 --pretty=%B ${GIT_COMMIT}', returnStdout: true).trim()
env.GIT_COMMIT_AUTHOR = sh (script: 'git log -1 --pretty=%an ${GIT_COMMIT}', returnStdout: true).trim()
env.COMMIT_URL = "https://github.com/rees46/api-reference/commit/${GIT_COMMIT}"
}
}
}
stage('Testing') {
steps {
script {
SUCCESS_STAGE = 'testing'
}
// stepPublisher(SUCCESS_STAGE, 'SECONDARY')
sh 'bin/testing'
}
}
stage('REES46') {
steps {
script {
SUCCESS_STAGE = 'rees46'
}
stepPublisher(SUCCESS_STAGE, 'SECONDARY')
sh 'bin/deploy_r46'
}
}
stage('PersonaClick') {
steps {
script {
SUCCESS_STAGE = 'PersonaClick'
}
stepPublisher(SUCCESS_STAGE, 'SECONDARY')
sh 'bin/deploy_pc'
}
}
stage('Kameleoon') {
steps {
script {
SUCCESS_STAGE = 'Kameleoon'
}
stepPublisher(SUCCESS_STAGE, 'SECONDARY')
sh 'bin/deploy_kameleoon'
}
}

}
post {
failure {
stepPublisher(SUCCESS_STAGE, 'ERROR')
}

aborted {
stepPublisher(SUCCESS_STAGE, 'WARNING')
}

success {
stepPublisher(SUCCESS_STAGE, 'SUCCESS')
}
}
}
Loading
Loading