[{"data":1,"prerenderedAt":2105},["ShallowReactive",2],{"/blog/how-to-create-review-apps-for-android-with-gitlab-fastlane-and-appetize-dot-io":3,"navigation-en-us":1355,"banner-en-us":1792,"footer-en-us":1800,"blog-post-authors-en-us-Andrew Fontaine":2047,"blog-related-posts-en-us-how-to-create-review-apps-for-android-with-gitlab-fastlane-and-appetize-dot-io":2062,"blog-share-wrapper-en-us":2085,"next-steps-en-us":2095},{"id":4,"title":5,"authors":6,"body":8,"category":1332,"date":1333,"description":1334,"extension":1335,"externalUrl":1336,"faq":1336,"featured":1337,"heroImage":1338,"hidePromo":1337,"meta":1339,"navigation":130,"path":1340,"seo":1341,"slug":1346,"stem":1347,"tags":1348,"template":1353,"updatedDate":1336,"__hash__":1354},"blogPosts/en-us/blog/how-to-create-review-apps-for-android-with-gitlab-fastlane-and-appetize-dot-io.md","How to create Review Apps for Android with GitLab, fastlane, and Appetize.io",[7],"Andrew Fontaine",{"type":9,"value":10,"toc":1325},"minimark",[11,35,43,50,55,65,192,205,370,381,385,395,421,546,555,671,674,681,685,692,695,701,933,964,982,992,1054,1058,1069,1270,1301,1307,1311,1321],[12,13,14,15,23,24,26,27,30,31,34],"p",{},"In a ",[16,17,18,19],"span",{},"previous look at GitLab and ",[20,21,22],"em",{},"fastlane",", we discussed how ",[20,25,22],{}," now\nautomatically publishes the Gitter Android app to the Google Play Store, but at\nGitLab, we live on ",[16,28,29],{},"review apps",", and review apps for Android applications didn't\nreally exist... until ",[16,32,33],{},"Appetize.io"," came to our attention.",[12,36,37,38,42],{},"Just a simple extension of our existing ",[39,40,41],"code",{},".gitlab-ci.yml",", we can utilize\nAppetize.io to spin up review apps of our Android application.",[12,44,45,46,49],{},"If you'd rather just skip to the end, you can see\n",[16,47,48],{},"my MR to the Gitter Android project",".",[51,52,54],"h2",{"id":53},"setting-up-fastlane","Setting up Fastlane",[12,56,57,58,60,61,64],{},"Fortunately for us, ",[20,59,22],{}," has integrated support for Appetize.io, so all\nthat's needed to hit Appetize is the addition of a new ",[39,62,63],{},"lane",":",[66,67,72],"pre",{"className":68,"code":69,"language":70,"meta":71,"style":71},"language-diff shiki shiki-themes github-light","diff --git a/fastlane/Fastfile b/fastlane/Fastfile\nindex eb47819..f013a86 100644\n--- a/fastlane/Fastfile\n+++ b/fastlane/Fastfile\n@@ -32,6 +32,13 @@ platform :android do\n     gradle(task: \"test\")\n   end\n\n+  desc 'Pushes the app to Appetize and updates a review app'\n+  lane :review do\n+    appetize(api_token: ENV['APPETIZE_TOKEN'],\n+             path: 'app/build/outputs/apk/debug/app-debug.apk',\n+             platform: 'android')\n+  end\n+\n   desc \"Submit a new Internal Build to Play Store\"\n   lane :internal do\n     upload_to_play_store(track: 'internal', apk: 'app/build/outputs/apk/release/app-release.apk')\n\n","diff","",[39,73,74,82,89,96,103,113,119,125,132,138,144,150,156,162,168,174,180,186],{"__ignoreMap":71},[16,75,78],{"class":76,"line":77},"line",1,[16,79,81],{"class":80},"sYu0t","diff --git a/fastlane/Fastfile b/fastlane/Fastfile\n",[16,83,85],{"class":76,"line":84},2,[16,86,88],{"class":87},"sgsFI","index eb47819..f013a86 100644\n",[16,90,92],{"class":76,"line":91},3,[16,93,95],{"class":94},"s9hmT","--- a/fastlane/Fastfile\n",[16,97,99],{"class":76,"line":98},4,[16,100,102],{"class":101},"shJU0","+++ b/fastlane/Fastfile\n",[16,104,106,110],{"class":76,"line":105},5,[16,107,109],{"class":108},"soKTg","@@ -32,6 +32,13 @@",[16,111,112],{"class":87}," platform :android do\n",[16,114,116],{"class":76,"line":115},6,[16,117,118],{"class":87},"     gradle(task: \"test\")\n",[16,120,122],{"class":76,"line":121},7,[16,123,124],{"class":87},"   end\n",[16,126,128],{"class":76,"line":127},8,[16,129,131],{"emptyLinePlaceholder":130},true,"\n",[16,133,135],{"class":76,"line":134},9,[16,136,137],{"class":101},"+  desc 'Pushes the app to Appetize and updates a review app'\n",[16,139,141],{"class":76,"line":140},10,[16,142,143],{"class":101},"+  lane :review do\n",[16,145,147],{"class":76,"line":146},11,[16,148,149],{"class":101},"+    appetize(api_token: ENV['APPETIZE_TOKEN'],\n",[16,151,153],{"class":76,"line":152},12,[16,154,155],{"class":101},"+             path: 'app/build/outputs/apk/debug/app-debug.apk',\n",[16,157,159],{"class":76,"line":158},13,[16,160,161],{"class":101},"+             platform: 'android')\n",[16,163,165],{"class":76,"line":164},14,[16,166,167],{"class":101},"+  end\n",[16,169,171],{"class":76,"line":170},15,[16,172,173],{"class":101},"+\n",[16,175,177],{"class":76,"line":176},16,[16,178,179],{"class":87},"   desc \"Submit a new Internal Build to Play Store\"\n",[16,181,183],{"class":76,"line":182},17,[16,184,185],{"class":87},"   lane :internal do\n",[16,187,189],{"class":76,"line":188},18,[16,190,191],{"class":87},"     upload_to_play_store(track: 'internal', apk: 'app/build/outputs/apk/release/app-release.apk')\n",[12,193,194,197,198,201,202,204],{},[39,195,196],{},"APPETIZE_TOKEN"," is an Appetize.io API token that can be generated on the\n",[16,199,200],{},"Appetize API docs"," after signing up for an account. Once we add a new job and\nstage to our ",[39,203,41],{},", we will be able to deploy our APK to Appetize and\nrun them in the browser!",[66,206,208],{"className":68,"code":207,"language":70,"meta":71,"style":71},"diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml\nindex d9863d7..e4d0ce3 100644\n--- a/.gitlab-ci.yml\n+++ b/.gitlab-ci.yml\n@@ -5,6 +5,7 @@ stages:\n   - environment\n   - build\n   - test\n+  - review\n   - internal\n   - alpha\n   - beta\n@@ -81,6 +82,16 @@ buildRelease:\n   environment:\n     name: production\n\n+deployReview:\n+  stage: review\n+  image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG\n+  script:\n+    - bundle exec fastlane review\n+  only:\n+    - branches\n+  except:\n+    - master\n+\n testDebug:\n   image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG\n   stage: test\n\n",[39,209,210,215,220,225,230,238,243,248,253,258,263,268,273,281,286,291,295,300,305,311,317,323,329,335,341,347,352,358,364],{"__ignoreMap":71},[16,211,212],{"class":76,"line":77},[16,213,214],{"class":80},"diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml\n",[16,216,217],{"class":76,"line":84},[16,218,219],{"class":87},"index d9863d7..e4d0ce3 100644\n",[16,221,222],{"class":76,"line":91},[16,223,224],{"class":94},"--- a/.gitlab-ci.yml\n",[16,226,227],{"class":76,"line":98},[16,228,229],{"class":101},"+++ b/.gitlab-ci.yml\n",[16,231,232,235],{"class":76,"line":105},[16,233,234],{"class":108},"@@ -5,6 +5,7 @@",[16,236,237],{"class":87}," stages:\n",[16,239,240],{"class":76,"line":115},[16,241,242],{"class":87},"   - environment\n",[16,244,245],{"class":76,"line":121},[16,246,247],{"class":87},"   - build\n",[16,249,250],{"class":76,"line":127},[16,251,252],{"class":87},"   - test\n",[16,254,255],{"class":76,"line":134},[16,256,257],{"class":101},"+  - review\n",[16,259,260],{"class":76,"line":140},[16,261,262],{"class":87},"   - internal\n",[16,264,265],{"class":76,"line":146},[16,266,267],{"class":87},"   - alpha\n",[16,269,270],{"class":76,"line":152},[16,271,272],{"class":87},"   - beta\n",[16,274,275,278],{"class":76,"line":158},[16,276,277],{"class":108},"@@ -81,6 +82,16 @@",[16,279,280],{"class":87}," buildRelease:\n",[16,282,283],{"class":76,"line":164},[16,284,285],{"class":87},"   environment:\n",[16,287,288],{"class":76,"line":170},[16,289,290],{"class":87},"     name: production\n",[16,292,293],{"class":76,"line":176},[16,294,131],{"emptyLinePlaceholder":130},[16,296,297],{"class":76,"line":182},[16,298,299],{"class":101},"+deployReview:\n",[16,301,302],{"class":76,"line":188},[16,303,304],{"class":101},"+  stage: review\n",[16,306,308],{"class":76,"line":307},19,[16,309,310],{"class":101},"+  image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG\n",[16,312,314],{"class":76,"line":313},20,[16,315,316],{"class":101},"+  script:\n",[16,318,320],{"class":76,"line":319},21,[16,321,322],{"class":101},"+    - bundle exec fastlane review\n",[16,324,326],{"class":76,"line":325},22,[16,327,328],{"class":101},"+  only:\n",[16,330,332],{"class":76,"line":331},23,[16,333,334],{"class":101},"+    - branches\n",[16,336,338],{"class":76,"line":337},24,[16,339,340],{"class":101},"+  except:\n",[16,342,344],{"class":76,"line":343},25,[16,345,346],{"class":101},"+    - master\n",[16,348,350],{"class":76,"line":349},26,[16,351,173],{"class":101},[16,353,355],{"class":76,"line":354},27,[16,356,357],{"class":87}," testDebug:\n",[16,359,361],{"class":76,"line":360},28,[16,362,363],{"class":87},"   image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG\n",[16,365,367],{"class":76,"line":366},29,[16,368,369],{"class":87},"   stage: test\n",[12,371,372,373,376,377,380],{},"Great! Review apps will be deployed when branches other than ",[39,374,375],{},"master"," build.\nUnfortunately, there is no ",[39,378,379],{},"environment"," block, so there's nothing linking these\ndeployed review apps to GitLab. Let's fix that next.",[51,382,384],{"id":383},"dynamic-environment-urls","Dynamic Environment URLs",[12,386,387,388,391,392,49],{},"Previously, GitLab only liked environment URLs that used pre-existing CI\nvariables (like ",[39,389,390],{},"$CI_COMMT_REF_NAME",") in their definition. Since 12.9, however,\na ",[16,393,394],{},"new way of defining environment urls with alternative variables exists",[12,396,397,398,401,402,405,406,409,410,413,414,417,418,420],{},"By creating a ",[39,399,400],{},"dotenv"," file and submitting it as an ",[39,403,404],{},"artifact"," in our build, we\ncan define custom variables to use in our environment's URL. As all Appetize.io\napp URLs take the pattern of ",[39,407,408],{},"https://appetize.io.app/$PUBLIC_KEY",", where\n",[39,411,412],{},"$PUBLIC_KEY"," is randomly generated when the app is created, we need to get the\npublic key from the Appetize response in our ",[39,415,416],{},"Fastfile",", and put it in a\n",[39,419,400],{}," file.",[66,422,424],{"className":68,"code":423,"language":70,"meta":71,"style":71},"diff --git a/fastlane/Fastfile b/fastlane/Fastfile\nindex 7b5f9d1..ae3867c 100644\n--- a/fastlane/Fastfile\n+++ b/fastlane/Fastfile\n@@ -13,6 +13,13 @@\n # Uncomment the line if you want fastlane to automatically update itself\n # update_fastlane\n\n+\n+def update_deployment_url(pub_key)\n+  File.open('../deploy.env', 'w') do |f|\n+    f.write(\"APPETIZE_PUBLIC_KEY=#{pub_key}\")\n+  end\n+end\n+\n default_platform(:android)\n\n platform :android do\n@@ -37,6 +44,7 @@ platform :android do\n     appetize(api_token: ENV['APPETIZE_TOKEN'],\n              path: 'app/build/outputs/apk/debug/app-debug.apk',\n              platform: 'android')\n+    update_deployment_url(lane_context[SharedValues::APPETIZE_PUBLIC_KEY])\n   end\n\n   desc \"Submit a new Internal Build to Play Store\"\n\n",[39,425,426,430,435,439,443,448,453,458,462,466,471,476,481,485,490,494,499,503,507,514,519,524,529,534,538,542],{"__ignoreMap":71},[16,427,428],{"class":76,"line":77},[16,429,81],{"class":80},[16,431,432],{"class":76,"line":84},[16,433,434],{"class":87},"index 7b5f9d1..ae3867c 100644\n",[16,436,437],{"class":76,"line":91},[16,438,95],{"class":94},[16,440,441],{"class":76,"line":98},[16,442,102],{"class":101},[16,444,445],{"class":76,"line":105},[16,446,447],{"class":108},"@@ -13,6 +13,13 @@\n",[16,449,450],{"class":76,"line":115},[16,451,452],{"class":87}," # Uncomment the line if you want fastlane to automatically update itself\n",[16,454,455],{"class":76,"line":121},[16,456,457],{"class":87}," # update_fastlane\n",[16,459,460],{"class":76,"line":127},[16,461,131],{"emptyLinePlaceholder":130},[16,463,464],{"class":76,"line":134},[16,465,173],{"class":101},[16,467,468],{"class":76,"line":140},[16,469,470],{"class":101},"+def update_deployment_url(pub_key)\n",[16,472,473],{"class":76,"line":146},[16,474,475],{"class":101},"+  File.open('../deploy.env', 'w') do |f|\n",[16,477,478],{"class":76,"line":152},[16,479,480],{"class":101},"+    f.write(\"APPETIZE_PUBLIC_KEY=#{pub_key}\")\n",[16,482,483],{"class":76,"line":158},[16,484,167],{"class":101},[16,486,487],{"class":76,"line":164},[16,488,489],{"class":101},"+end\n",[16,491,492],{"class":76,"line":170},[16,493,173],{"class":101},[16,495,496],{"class":76,"line":176},[16,497,498],{"class":87}," default_platform(:android)\n",[16,500,501],{"class":76,"line":182},[16,502,131],{"emptyLinePlaceholder":130},[16,504,505],{"class":76,"line":188},[16,506,112],{"class":87},[16,508,509,512],{"class":76,"line":307},[16,510,511],{"class":108},"@@ -37,6 +44,7 @@",[16,513,112],{"class":87},[16,515,516],{"class":76,"line":313},[16,517,518],{"class":87},"     appetize(api_token: ENV['APPETIZE_TOKEN'],\n",[16,520,521],{"class":76,"line":319},[16,522,523],{"class":87},"              path: 'app/build/outputs/apk/debug/app-debug.apk',\n",[16,525,526],{"class":76,"line":325},[16,527,528],{"class":87},"              platform: 'android')\n",[16,530,531],{"class":76,"line":331},[16,532,533],{"class":101},"+    update_deployment_url(lane_context[SharedValues::APPETIZE_PUBLIC_KEY])\n",[16,535,536],{"class":76,"line":337},[16,537,124],{"class":87},[16,539,540],{"class":76,"line":343},[16,541,131],{"emptyLinePlaceholder":130},[16,543,544],{"class":76,"line":349},[16,545,179],{"class":87},[12,547,548,549,551,552,554],{},"We also need to add an ",[39,550,379],{}," block to our ",[39,553,41],{}," to capture an\nenvironment name and URL.",[66,556,558],{"className":68,"code":557,"language":70,"meta":71,"style":71},"diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml\nindex f5a8648..c834077 100644\n--- a/.gitlab-ci.yml\n+++ b/.gitlab-ci.yml\n@@ -85,12 +85,18 @@ buildCreateReleaseNotes:\n deployReview:\n   stage: review\n   image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG\n+  environment:\n+    name: review/$CI_COMMIT_REF_NAME\n+    url: https://appetize.io/app/$APPETIZE_PUBLIC_KEY\n   script:\n     - bundle exec fastlane review\n   only:\n     - branches\n   except:\n     - master\n+  artifacts:\n+    reports:\n+      dotenv: deploy.env\n\n testDebug:\n   image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG\n\n",[39,559,560,564,569,573,577,585,590,595,599,604,609,614,619,624,629,634,639,644,649,654,659,663,667],{"__ignoreMap":71},[16,561,562],{"class":76,"line":77},[16,563,214],{"class":80},[16,565,566],{"class":76,"line":84},[16,567,568],{"class":87},"index f5a8648..c834077 100644\n",[16,570,571],{"class":76,"line":91},[16,572,224],{"class":94},[16,574,575],{"class":76,"line":98},[16,576,229],{"class":101},[16,578,579,582],{"class":76,"line":105},[16,580,581],{"class":108},"@@ -85,12 +85,18 @@",[16,583,584],{"class":87}," buildCreateReleaseNotes:\n",[16,586,587],{"class":76,"line":115},[16,588,589],{"class":87}," deployReview:\n",[16,591,592],{"class":76,"line":121},[16,593,594],{"class":87},"   stage: review\n",[16,596,597],{"class":76,"line":127},[16,598,363],{"class":87},[16,600,601],{"class":76,"line":134},[16,602,603],{"class":101},"+  environment:\n",[16,605,606],{"class":76,"line":140},[16,607,608],{"class":101},"+    name: review/$CI_COMMIT_REF_NAME\n",[16,610,611],{"class":76,"line":146},[16,612,613],{"class":101},"+    url: https://appetize.io/app/$APPETIZE_PUBLIC_KEY\n",[16,615,616],{"class":76,"line":152},[16,617,618],{"class":87},"   script:\n",[16,620,621],{"class":76,"line":158},[16,622,623],{"class":87},"     - bundle exec fastlane review\n",[16,625,626],{"class":76,"line":164},[16,627,628],{"class":87},"   only:\n",[16,630,631],{"class":76,"line":170},[16,632,633],{"class":87},"     - branches\n",[16,635,636],{"class":76,"line":176},[16,637,638],{"class":87},"   except:\n",[16,640,641],{"class":76,"line":182},[16,642,643],{"class":87},"     - master\n",[16,645,646],{"class":76,"line":188},[16,647,648],{"class":101},"+  artifacts:\n",[16,650,651],{"class":76,"line":307},[16,652,653],{"class":101},"+    reports:\n",[16,655,656],{"class":76,"line":313},[16,657,658],{"class":101},"+      dotenv: deploy.env\n",[16,660,661],{"class":76,"line":319},[16,662,131],{"emptyLinePlaceholder":130},[16,664,665],{"class":76,"line":325},[16,666,357],{"class":87},[16,668,669],{"class":76,"line":331},[16,670,363],{"class":87},[12,672,673],{},"Once committed, pushed, and a pipeline runs, we should see our environment\ndeployed!",[12,675,676],{},[677,678],"img",{"alt":679,"src":680},"Our first review environment","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398503/blog/Content%20Images/how-to-create-review-apps-for-android-with-gitlab-fastlane-and-appetize-dot-io/first-review-app.png",[51,682,684],{"id":683},"optimizing-updates","Optimizing Updates",[12,686,687,688,691],{},"After running with this for a bit, we realized that we were accidentally\ncreating a new app on Appetize.io with every new build! Their docs\n",[16,689,690],{},"specify how to update existing apps",", so we went about seeing if we could\nsmartly update existing environments.",[12,693,694],{},"Spoiler alert: We could.",[12,696,697,698,700],{},"First, we need to save the public key granted to us by Appetize.io somewhere. We\ndecided to put it in a JSON file and save that as an artifact of the build.\nFortunately, the ",[39,699,416],{}," is just ruby, which allows us to quickly write it\nout to a file with a few lines of code, as well as attempt to fetch the artifact\nfor the last build of the current branch.",[66,702,704],{"className":68,"code":703,"language":70,"meta":71,"style":71},"diff --git a/fastlane/Fastfile b/fastlane/Fastfile\nindex ae3867c..61e9226 100644\n--- a/fastlane/Fastfile\n+++ b/fastlane/Fastfile\n@@ -13,8 +13,32 @@\n # Uncomment the line if you want fastlane to automatically update itself\n # update_fastlane\n\n+require 'net/http'\n+require 'json'\n+\n+GITLAB_TOKEN = ENV['PRIVATE_TOKEN']\n+PROJECT_ID = ENV['CI_PROJECT_ID']\n+REF = ENV['CI_COMMIT_REF_NAME']\n+JOB = ENV['CI_JOB_NAME']\n+API_ROOT = ENV['CI_API_V4_URL']\n+\n+def public_key\n+  uri = URI(\"#{API_ROOT}/projects/#{PROJECT_ID}/jobs/artifacts/#{REF}/raw/appetize-information.json?job=#{JOB}\")\n+  http = Net::HTTP.new(uri.host, uri.port)\n+  http.use_ssl = true\n+  req = Net::HTTP::Get.new(uri)\n+  req['PRIVATE-TOKEN'] = GITLAB_TOKEN\n+  response = http.request(req)\n+  return '' if response.code.equal?('404')\n+\n+  appetize_info = JSON.parse(response.body)\n+  appetize_info['publicKey']\n+end\n\n def update_deployment_url(pub_key)\n+  File.open('../appetize-information.json', 'w') do |f|\n+    f.write(JSON.generate(publicKey: pub_key))\n+  end\n   File.open('../deploy.env', 'w') do |f|\n     f.write(\"APPETIZE_PUBLIC_KEY=#{pub_key}\")\n   end\n@@ -42,6 +66,7 @@ platform :android do\n   desc 'Pushes the app to Appetize and updates a review app'\n   lane :review do\n     appetize(api_token: ENV['APPETIZE_TOKEN'],\n+             public_key: public_key,\n              path: 'app/build/outputs/apk/debug/app-debug.apk',\n              platform: 'android')\n     update_deployment_url(lane_context[SharedValues::APPETIZE_PUBLIC_KEY])\n\n",[39,705,706,710,715,719,723,728,732,736,740,745,750,754,759,764,769,774,779,783,788,793,798,803,808,813,818,823,827,832,837,841,846,852,858,864,869,875,881,886,894,900,906,911,917,922,927],{"__ignoreMap":71},[16,707,708],{"class":76,"line":77},[16,709,81],{"class":80},[16,711,712],{"class":76,"line":84},[16,713,714],{"class":87},"index ae3867c..61e9226 100644\n",[16,716,717],{"class":76,"line":91},[16,718,95],{"class":94},[16,720,721],{"class":76,"line":98},[16,722,102],{"class":101},[16,724,725],{"class":76,"line":105},[16,726,727],{"class":108},"@@ -13,8 +13,32 @@\n",[16,729,730],{"class":76,"line":115},[16,731,452],{"class":87},[16,733,734],{"class":76,"line":121},[16,735,457],{"class":87},[16,737,738],{"class":76,"line":127},[16,739,131],{"emptyLinePlaceholder":130},[16,741,742],{"class":76,"line":134},[16,743,744],{"class":101},"+require 'net/http'\n",[16,746,747],{"class":76,"line":140},[16,748,749],{"class":101},"+require 'json'\n",[16,751,752],{"class":76,"line":146},[16,753,173],{"class":101},[16,755,756],{"class":76,"line":152},[16,757,758],{"class":101},"+GITLAB_TOKEN = ENV['PRIVATE_TOKEN']\n",[16,760,761],{"class":76,"line":158},[16,762,763],{"class":101},"+PROJECT_ID = ENV['CI_PROJECT_ID']\n",[16,765,766],{"class":76,"line":164},[16,767,768],{"class":101},"+REF = ENV['CI_COMMIT_REF_NAME']\n",[16,770,771],{"class":76,"line":170},[16,772,773],{"class":101},"+JOB = ENV['CI_JOB_NAME']\n",[16,775,776],{"class":76,"line":176},[16,777,778],{"class":101},"+API_ROOT = ENV['CI_API_V4_URL']\n",[16,780,781],{"class":76,"line":182},[16,782,173],{"class":101},[16,784,785],{"class":76,"line":188},[16,786,787],{"class":101},"+def public_key\n",[16,789,790],{"class":76,"line":307},[16,791,792],{"class":101},"+  uri = URI(\"#{API_ROOT}/projects/#{PROJECT_ID}/jobs/artifacts/#{REF}/raw/appetize-information.json?job=#{JOB}\")\n",[16,794,795],{"class":76,"line":313},[16,796,797],{"class":101},"+  http = Net::HTTP.new(uri.host, uri.port)\n",[16,799,800],{"class":76,"line":319},[16,801,802],{"class":101},"+  http.use_ssl = true\n",[16,804,805],{"class":76,"line":325},[16,806,807],{"class":101},"+  req = Net::HTTP::Get.new(uri)\n",[16,809,810],{"class":76,"line":331},[16,811,812],{"class":101},"+  req['PRIVATE-TOKEN'] = GITLAB_TOKEN\n",[16,814,815],{"class":76,"line":337},[16,816,817],{"class":101},"+  response = http.request(req)\n",[16,819,820],{"class":76,"line":343},[16,821,822],{"class":101},"+  return '' if response.code.equal?('404')\n",[16,824,825],{"class":76,"line":349},[16,826,173],{"class":101},[16,828,829],{"class":76,"line":354},[16,830,831],{"class":101},"+  appetize_info = JSON.parse(response.body)\n",[16,833,834],{"class":76,"line":360},[16,835,836],{"class":101},"+  appetize_info['publicKey']\n",[16,838,839],{"class":76,"line":366},[16,840,489],{"class":101},[16,842,844],{"class":76,"line":843},30,[16,845,131],{"emptyLinePlaceholder":130},[16,847,849],{"class":76,"line":848},31,[16,850,851],{"class":87}," def update_deployment_url(pub_key)\n",[16,853,855],{"class":76,"line":854},32,[16,856,857],{"class":101},"+  File.open('../appetize-information.json', 'w') do |f|\n",[16,859,861],{"class":76,"line":860},33,[16,862,863],{"class":101},"+    f.write(JSON.generate(publicKey: pub_key))\n",[16,865,867],{"class":76,"line":866},34,[16,868,167],{"class":101},[16,870,872],{"class":76,"line":871},35,[16,873,874],{"class":87},"   File.open('../deploy.env', 'w') do |f|\n",[16,876,878],{"class":76,"line":877},36,[16,879,880],{"class":87},"     f.write(\"APPETIZE_PUBLIC_KEY=#{pub_key}\")\n",[16,882,884],{"class":76,"line":883},37,[16,885,124],{"class":87},[16,887,889,892],{"class":76,"line":888},38,[16,890,891],{"class":108},"@@ -42,6 +66,7 @@",[16,893,112],{"class":87},[16,895,897],{"class":76,"line":896},39,[16,898,899],{"class":87},"   desc 'Pushes the app to Appetize and updates a review app'\n",[16,901,903],{"class":76,"line":902},40,[16,904,905],{"class":87},"   lane :review do\n",[16,907,909],{"class":76,"line":908},41,[16,910,518],{"class":87},[16,912,914],{"class":76,"line":913},42,[16,915,916],{"class":101},"+             public_key: public_key,\n",[16,918,920],{"class":76,"line":919},43,[16,921,523],{"class":87},[16,923,925],{"class":76,"line":924},44,[16,926,528],{"class":87},[16,928,930],{"class":76,"line":929},45,[16,931,932],{"class":87},"     update_deployment_url(lane_context[SharedValues::APPETIZE_PUBLIC_KEY])\n",[12,934,935,936,939,940,943,944,947,948,951,952,955,956,959,960,963],{},"When we go to deploy our app to Appetize, we hit the ",[16,937,938],{},"Jobs API"," to see if we\nhave a public key for this branch. If the API returns a ",[39,941,942],{},"404",", we know we are\nbuilding a fresh branch and return an empty string, else we parse the JSON and\nreturn our public key. The ",[16,945,946],{},"Fastlane docs"," state the ",[39,949,950],{},"appetize"," action can take\na ",[39,953,954],{},"public_key"," to update an existing app. Here, ",[39,957,958],{},"''"," is considered the same as\n",[20,961,962],{},"not"," providing a public key, so a new application is still deployed as we expect.",[12,965,966,970,971,973,974,977,978,981],{},[967,968,969],"strong",{},"NOTE:"," If you've read the ",[39,972,70],{}," closely, you'll notice the usage of an\nenvironment variable called ",[39,975,976],{},"PRIVATE_TOKEN",". This is a GitLab private token\ncreated with the ",[39,979,980],{},"read_api"," scope and injected into our build as an environment\nvariable. This is required to authenticate with the GitLab API and fetch\nartifacts.",[12,983,984,985,987,988,991],{},"Once we update ",[39,986,41],{}," to save the new ",[39,989,990],{},"appetize-information.json"," file\nas an artifact, later builds on the same branch will be smart and update the\nexisting Appetize app!",[66,993,995],{"className":68,"code":994,"language":70,"meta":71,"style":71},"diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml\nindex c834077..54cf3f6 100644\n--- a/.gitlab-ci.yml\n+++ b/.gitlab-ci.yml\n@@ -95,6 +95,8 @@ deployReview:\n   except:\n     - master\n   artifacts:\n+    paths:\n+      - appetize-information.json\n     reports:\n       dotenv: deploy.env\n\n",[39,996,997,1001,1006,1010,1014,1021,1025,1029,1034,1039,1044,1049],{"__ignoreMap":71},[16,998,999],{"class":76,"line":77},[16,1000,214],{"class":80},[16,1002,1003],{"class":76,"line":84},[16,1004,1005],{"class":87},"index c834077..54cf3f6 100644\n",[16,1007,1008],{"class":76,"line":91},[16,1009,224],{"class":94},[16,1011,1012],{"class":76,"line":98},[16,1013,229],{"class":101},[16,1015,1016,1019],{"class":76,"line":105},[16,1017,1018],{"class":108},"@@ -95,6 +95,8 @@",[16,1020,589],{"class":87},[16,1022,1023],{"class":76,"line":115},[16,1024,638],{"class":87},[16,1026,1027],{"class":76,"line":121},[16,1028,643],{"class":87},[16,1030,1031],{"class":76,"line":127},[16,1032,1033],{"class":87},"   artifacts:\n",[16,1035,1036],{"class":76,"line":134},[16,1037,1038],{"class":101},"+    paths:\n",[16,1040,1041],{"class":76,"line":140},[16,1042,1043],{"class":101},"+      - appetize-information.json\n",[16,1045,1046],{"class":76,"line":146},[16,1047,1048],{"class":87},"     reports:\n",[16,1050,1051],{"class":76,"line":152},[16,1052,1053],{"class":87},"       dotenv: deploy.env\n",[51,1055,1057],{"id":1056},"cleaning-up","Cleaning up",[12,1059,1060,1061,1064,1065,1068],{},"All that's left is to delete old apps from Appetize once we don't need them\nanymore. We can do that by leveraging ",[39,1062,1063],{},"on_stop"," and creating a ",[39,1066,1067],{},"stop"," job that\nwill delete our app from Appetize.io",[66,1070,1072],{"className":68,"code":1071,"language":70,"meta":71,"style":71},"diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml\nindex 54cf3f6..f6ecf7e 100644\n--- a/.gitlab-ci.yml\n+++ b/.gitlab-ci.yml\n@@ -10,6 +10,7 @@ stages:\n   - alpha\n   - beta\n   - production\n+  - stop\n\n\n .updateContainerJob:\n@@ -88,6 +89,7 @@ deployReview:\n   environment:\n     name: review/$CI_COMMIT_REF_NAME\n     url: https://appetize.io/app/$APPETIZE_PUBLIC_KEY\n+    on_stop: stopReview\n   script:\n     - bundle exec fastlane review\n   only:\n@@ -100,6 +102,22 @@ deployReview:\n     reports:\n       dotenv: deploy.env\n\n+stopReview:\n+  stage: stop\n+  environment:\n+    name: review/$CI_COMMIT_REF_NAME\n+    action: stop\n+  variables:\n+    GIT_STRATEGY: none\n+  when: manual\n+  only:\n+    - branches\n+  except:\n+    - master\n+  script:\n+    - apt-get -y update && apt-get -y upgrade && apt-get -y install jq curl\n+    - curl --request DELETE https://$APPETIZE_TOKEN@api.appetize.io/v1/apps/`jq -r '.publicKey' \u003C appetize-information.json`\n+\n testDebug:\n   image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG\n   stage: test\n\n",[39,1073,1074,1078,1083,1087,1091,1098,1102,1106,1111,1116,1120,1124,1129,1136,1140,1145,1150,1155,1159,1163,1167,1174,1178,1182,1186,1191,1196,1200,1204,1209,1214,1219,1224,1228,1232,1236,1240,1244,1249,1254,1258,1262,1266],{"__ignoreMap":71},[16,1075,1076],{"class":76,"line":77},[16,1077,214],{"class":80},[16,1079,1080],{"class":76,"line":84},[16,1081,1082],{"class":87},"index 54cf3f6..f6ecf7e 100644\n",[16,1084,1085],{"class":76,"line":91},[16,1086,224],{"class":94},[16,1088,1089],{"class":76,"line":98},[16,1090,229],{"class":101},[16,1092,1093,1096],{"class":76,"line":105},[16,1094,1095],{"class":108},"@@ -10,6 +10,7 @@",[16,1097,237],{"class":87},[16,1099,1100],{"class":76,"line":115},[16,1101,267],{"class":87},[16,1103,1104],{"class":76,"line":121},[16,1105,272],{"class":87},[16,1107,1108],{"class":76,"line":127},[16,1109,1110],{"class":87},"   - production\n",[16,1112,1113],{"class":76,"line":134},[16,1114,1115],{"class":101},"+  - stop\n",[16,1117,1118],{"class":76,"line":140},[16,1119,131],{"emptyLinePlaceholder":130},[16,1121,1122],{"class":76,"line":146},[16,1123,131],{"emptyLinePlaceholder":130},[16,1125,1126],{"class":76,"line":152},[16,1127,1128],{"class":87}," .updateContainerJob:\n",[16,1130,1131,1134],{"class":76,"line":158},[16,1132,1133],{"class":108},"@@ -88,6 +89,7 @@",[16,1135,589],{"class":87},[16,1137,1138],{"class":76,"line":164},[16,1139,285],{"class":87},[16,1141,1142],{"class":76,"line":170},[16,1143,1144],{"class":87},"     name: review/$CI_COMMIT_REF_NAME\n",[16,1146,1147],{"class":76,"line":176},[16,1148,1149],{"class":87},"     url: https://appetize.io/app/$APPETIZE_PUBLIC_KEY\n",[16,1151,1152],{"class":76,"line":182},[16,1153,1154],{"class":101},"+    on_stop: stopReview\n",[16,1156,1157],{"class":76,"line":188},[16,1158,618],{"class":87},[16,1160,1161],{"class":76,"line":307},[16,1162,623],{"class":87},[16,1164,1165],{"class":76,"line":313},[16,1166,628],{"class":87},[16,1168,1169,1172],{"class":76,"line":319},[16,1170,1171],{"class":108},"@@ -100,6 +102,22 @@",[16,1173,589],{"class":87},[16,1175,1176],{"class":76,"line":325},[16,1177,1048],{"class":87},[16,1179,1180],{"class":76,"line":331},[16,1181,1053],{"class":87},[16,1183,1184],{"class":76,"line":337},[16,1185,131],{"emptyLinePlaceholder":130},[16,1187,1188],{"class":76,"line":343},[16,1189,1190],{"class":101},"+stopReview:\n",[16,1192,1193],{"class":76,"line":349},[16,1194,1195],{"class":101},"+  stage: stop\n",[16,1197,1198],{"class":76,"line":354},[16,1199,603],{"class":101},[16,1201,1202],{"class":76,"line":360},[16,1203,608],{"class":101},[16,1205,1206],{"class":76,"line":366},[16,1207,1208],{"class":101},"+    action: stop\n",[16,1210,1211],{"class":76,"line":843},[16,1212,1213],{"class":101},"+  variables:\n",[16,1215,1216],{"class":76,"line":848},[16,1217,1218],{"class":101},"+    GIT_STRATEGY: none\n",[16,1220,1221],{"class":76,"line":854},[16,1222,1223],{"class":101},"+  when: manual\n",[16,1225,1226],{"class":76,"line":860},[16,1227,328],{"class":101},[16,1229,1230],{"class":76,"line":866},[16,1231,334],{"class":101},[16,1233,1234],{"class":76,"line":871},[16,1235,340],{"class":101},[16,1237,1238],{"class":76,"line":877},[16,1239,346],{"class":101},[16,1241,1242],{"class":76,"line":883},[16,1243,316],{"class":101},[16,1245,1246],{"class":76,"line":888},[16,1247,1248],{"class":101},"+    - apt-get -y update && apt-get -y upgrade && apt-get -y install jq curl\n",[16,1250,1251],{"class":76,"line":896},[16,1252,1253],{"class":101},"+    - curl --request DELETE https://$APPETIZE_TOKEN@api.appetize.io/v1/apps/`jq -r '.publicKey' \u003C appetize-information.json`\n",[16,1255,1256],{"class":76,"line":902},[16,1257,173],{"class":101},[16,1259,1260],{"class":76,"line":908},[16,1261,357],{"class":87},[16,1263,1264],{"class":76,"line":913},[16,1265,363],{"class":87},[16,1267,1268],{"class":76,"line":919},[16,1269,369],{"class":87},[12,1271,1272,1273,1276,1277,1283,1284,1286,1287,1289,1290,1292,1293,1296,1297,1300],{},"Once your MR is merged and your branch is deleted, the ",[39,1274,1275],{},"stopReview"," job runs,\ncalling the ",[16,1278,1279,1282],{},[39,1280,1281],{},"DELETE"," endpoint of the Appetize.io API"," with the public key that\nis contained in ",[39,1285,990],{},". We don't need to fetch\n",[39,1288,990],{}," because the artifact is already present in our build\ncontext. This is because the ",[39,1291,1067],{}," stage happens ",[20,1294,1295],{},"after"," the ",[39,1298,1299],{},"review"," stage.",[12,1302,1303],{},[677,1304],{"alt":1305,"src":1306},"A merge request with a deployed review app","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398503/blog/Content%20Images/how-to-create-review-apps-for-android-with-gitlab-fastlane-and-appetize-dot-io/merge-request-with-review-app.png",[51,1308,1310],{"id":1309},"conclusion","Conclusion",[12,1312,1313,1314,1316,1317,1320],{},"Thanks to some integration with ",[20,1315,22],{}," and the addition of a couple\nenvironment variables, having the ability to create review apps for an Android\nproject was surpsingly simple. GitLab's review apps are not ",[20,1318,1319],{},"just"," for web-based\nprojects, even though it may take a little tinkering to get working. Appetize.io\nalso supports iOS applications, so all mobile native applications can be turned\ninto review apps. I would love to see this strategy be applied to a React Native\nproject as well!",[1322,1323,1324],"style",{},"html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .s9hmT, html code.shiki .s9hmT{--shiki-default:#B31D28}html pre.shiki code .shJU0, html code.shiki .shJU0{--shiki-default:#22863A}html pre.shiki code .soKTg, html code.shiki .soKTg{--shiki-default:#6F42C1;--shiki-default-font-weight:bold}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":71,"searchDepth":84,"depth":84,"links":1326},[1327,1328,1329,1330,1331],{"id":53,"depth":84,"text":54},{"id":383,"depth":84,"text":384},{"id":683,"depth":84,"text":684},{"id":1056,"depth":84,"text":1057},{"id":1309,"depth":84,"text":1310},"unfiltered","2020-05-06","See how GitLab and Appetize.io can bring Review Apps to your Android project","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749664102/Blog/Hero%20Images/gitlab-values-cover.png",{},"/en-us/blog/how-to-create-review-apps-for-android-with-gitlab-fastlane-and-appetize-dot-io",{"title":1342,"description":1334,"ogTitle":1342,"ogDescription":1334,"noIndex":1337,"ogImage":1338,"ogUrl":1343,"ogSiteName":1344,"ogType":1345,"canonicalUrls":1343},"Review Apps for Android with GitLab, fastlane & Appetize.io","https://about.gitlab.com/blog/how-to-create-review-apps-for-android-with-gitlab-fastlane-and-appetize-dot-io","https://about.gitlab.com","article","how-to-create-review-apps-for-android-with-gitlab-fastlane-and-appetize-dot-io","en-us/blog/how-to-create-review-apps-for-android-with-gitlab-fastlane-and-appetize-dot-io",[1349,1350,1351,1352],"CI/CD","integrations","features","tutorial","BlogPost","tNZyYNvuXLBxEwcE9vxxFNTWC1YOhEJTAQGhkxQ-JlQ",{"logo":1356,"freeTrial":1361,"sales":1366,"login":1371,"items":1376,"search":1711,"minimal":1743,"duo":1762,"switchNav":1771,"pricingDeployment":1782},{"config":1357},{"href":1358,"dataGaName":1359,"dataGaLocation":1360},"/","gitlab logo","header",{"text":1362,"config":1363},"Get free trial",{"href":1364,"dataGaName":1365,"dataGaLocation":1360},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":1367,"config":1368},"Request a demo",{"href":1369,"dataGaName":1370,"dataGaLocation":1360},"/request-a-demo/","sales",{"text":1372,"config":1373},"Sign in",{"href":1374,"dataGaName":1375,"dataGaLocation":1360},"https://gitlab.com/users/sign_in/","sign in",[1377,1462,1550,1555,1635,1689],{"text":1378,"left":130,"config":1379,"menu":1381},"Platform",{"dataNavLevelOne":1380},"platform",{"type":1382,"link":1383,"columns":1387,"feature":1451},"lists",{"text":1384,"config":1385},"Explore the Platform",{"href":1386,"dataGaName":1380,"dataGaLocation":1360},"/platform/",[1388,1410,1433],{"title":1389,"items":1390},"DevOps",[1391,1395,1400,1405],{"text":1349,"config":1392},{"href":1393,"dataGaLocation":1360,"dataGaName":1394},"/solutions/continuous-integration/","ci/cd",{"text":1396,"config":1397},"Source Code Management",{"href":1398,"dataGaLocation":1360,"dataGaName":1399},"/solutions/source-code-management/","source code management",{"text":1401,"config":1402},"Agile Delivery",{"href":1403,"dataGaLocation":1360,"dataGaName":1404},"/solutions/agile-delivery/","agile delivery",{"text":1406,"config":1407},"Artifact Management",{"href":1408,"dataGaLocation":1360,"dataGaName":1409},"/artifact-central/","artifact management",{"title":1411,"items":1412},"Security & Governance",[1413,1418,1423,1428],{"text":1414,"config":1415},"Application Security Testing",{"href":1416,"dataGaLocation":1360,"dataGaName":1417},"/solutions/application-security-testing/","application security testing",{"text":1419,"config":1420},"Governance & Compliance",{"href":1421,"dataGaLocation":1360,"dataGaName":1422},"/solutions/software-compliance/","governance and compliance",{"text":1424,"config":1425},"Secrets Management",{"href":1426,"dataGaLocation":1360,"dataGaName":1427},"/gitlab-secrets-manager/","secrets management",{"text":1429,"config":1430},"Supply Chain Security",{"href":1431,"dataGaLocation":1360,"dataGaName":1432},"/solutions/supply-chain/","supply chain security",{"title":1434,"items":1435},"Agentic AI & Context",[1436,1441,1446],{"text":1437,"config":1438},"Duo Agent Platform",{"href":1439,"dataGaLocation":1360,"dataGaName":1440},"/gitlab-duo-agent-platform/","duo agent platform",{"text":1442,"config":1443},"Orbit Context Graph",{"href":1444,"dataGaLocation":1360,"dataGaName":1445},"/gitlab-orbit/","orbit",{"text":1447,"config":1448},"Visibility & Measurement",{"href":1449,"dataGaLocation":1360,"dataGaName":1450},"/solutions/visibility-measurement/","visibility and measurement",{"config":1452,"title":1455,"text":1456,"link":1457},{"background":1453,"textColor":1454},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1790185102/o7dn32anqcb6z8dgd3as.jpg')","#000","GitLab Orbit is generally available","Higher agent accuracy, lower token cost",{"text":1458,"config":1459},"Read the announcement",{"href":1460,"dataGaName":1461,"dataGaLocation":1360},"/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":1463,"left":130,"config":1464,"menu":1466},"Solutions",{"dataNavLevelOne":1465},"solutions",{"type":1382,"link":1467,"columns":1471,"feature":1541},{"text":1468,"config":1469},"View all Solutions",{"href":1470,"dataGaName":1465,"dataGaLocation":1360},"/solutions/",[1472,1490,1508],{"title":1473,"items":1474},"Outcomes",[1475,1480,1485],{"text":1476,"config":1477},"DevOps Modernization",{"href":1478,"dataGaLocation":1360,"dataGaName":1479},"/assessments/devops-modernization-assessment/","devops modernization",{"text":1481,"config":1482},"Security Modernization",{"href":1483,"dataGaLocation":1360,"dataGaName":1484},"/assessments/security-modernization-assessment/","security modernization",{"text":1486,"config":1487},"AI Modernization",{"href":1488,"dataGaLocation":1360,"dataGaName":1489},"/assessments/ai-modernization-assessment/","ai modernization",{"title":1491,"items":1492},"By size",[1493,1498,1503],{"text":1494,"config":1495},"Enterprise",{"href":1496,"dataGaLocation":1360,"dataGaName":1497},"/enterprise/","enterprise",{"text":1499,"config":1500},"Small Business",{"href":1501,"dataGaLocation":1360,"dataGaName":1502},"/small-business/","small business",{"text":1504,"config":1505},"Startups",{"href":1506,"dataGaLocation":1360,"dataGaName":1507},"/solutions/startups/","startups",{"title":1509,"items":1510},"Industries",[1511,1516,1521,1526,1531,1536],{"text":1512,"config":1513},"Financial Services",{"href":1514,"dataGaLocation":1360,"dataGaName":1515},"/solutions/finance/","financial services",{"text":1517,"config":1518},"Public Sector",{"href":1519,"dataGaLocation":1360,"dataGaName":1520},"/solutions/public-sector/","public sector",{"text":1522,"config":1523},"Telecommunications",{"href":1524,"dataGaLocation":1360,"dataGaName":1525},"/solutions/telecommunications/","telecommunications",{"text":1527,"config":1528},"Automotive",{"href":1529,"dataGaLocation":1360,"dataGaName":1530},"/solutions/automotive/","automotive",{"text":1532,"config":1533},"Education",{"href":1534,"dataGaLocation":1360,"dataGaName":1535},"/solutions/education/","education",{"text":1537,"config":1538},"Aerospace",{"href":1539,"dataGaLocation":1360,"dataGaName":1540},"/solutions/aerospace/","aerospace",{"config":1542,"title":1543,"text":1544,"link":1545},{"background":1453,"textColor":1454},"GitLab Security Standard","Learn how to harden your software factory and let AI agents earn autonomy, without trading away security.",{"text":1546,"config":1547},"Explore the standard",{"href":1548,"dataGaName":1549,"dataGaLocation":1360},"/gitlab-security-standard/","gitlab security standard",{"text":1551,"config":1552},"Pricing",{"href":1553,"dataGaName":1554,"dataGaLocation":1360,"dataNavLevelOne":1554},"/pricing/","pricing",{"text":1556,"config":1557,"menu":1559},"Resources",{"dataNavLevelOne":1558},"resources",{"type":1382,"link":1560,"columns":1564,"feature":1626},{"text":1561,"config":1562},"View all resources",{"href":1563,"dataGaName":1558,"dataGaLocation":1360},"/resources/",[1565,1598],{"title":1566,"items":1567},"Discover",[1568,1573,1578,1583,1588,1593],{"text":1569,"config":1570},"Docs",{"href":1571,"dataGaName":1572,"dataGaLocation":1360},"https://docs.gitlab.com/","docs",{"text":1574,"config":1575},"University",{"href":1576,"dataGaName":1577,"dataGaLocation":1360},"https://university.gitlab.com/","university",{"text":1579,"config":1580},"Demo Series",{"href":1581,"dataGaName":1582,"dataGaLocation":1360},"/gitlab-technical-demo-series/","demo series",{"text":1584,"config":1585},"Demo Hub",{"href":1586,"dataGaName":1587,"dataGaLocation":1360},"/demo-hub/","demo hub",{"text":1589,"config":1590},"Services",{"href":1591,"dataGaName":1592,"dataGaLocation":1360},"/services/","services",{"text":1594,"config":1595},"Well Architected",{"href":1596,"dataGaName":1597,"dataGaLocation":1360},"/resources/well-architected/","well architected",{"title":1599,"items":1600},"Connect",[1601,1606,1611,1616,1621],{"text":1602,"config":1603},"Blog",{"href":1604,"dataGaName":1605,"dataGaLocation":1360},"/blog/","blog",{"text":1607,"config":1608},"Community",{"href":1609,"dataGaName":1610,"dataGaLocation":1360},"/community/","community",{"text":1612,"config":1613},"Customers",{"href":1614,"dataGaName":1615,"dataGaLocation":1360},"/customers/","customers",{"text":1617,"config":1618},"Partners",{"href":1619,"dataGaName":1620,"dataGaLocation":1360},"/partners/","partners",{"text":1622,"config":1623},"Events",{"href":1624,"dataGaName":1625,"dataGaLocation":1360},"/events/","events",{"config":1627,"title":1628,"text":1629,"link":1630},{"background":1453,"textColor":1454},"What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":1631,"config":1632},"Read the latest",{"href":1633,"dataGaName":1634,"dataGaLocation":1360},"/whats-new/","whats new",{"text":1636,"config":1637,"menu":1639},"Company",{"dataNavLevelOne":1638},"company",{"type":1382,"columns":1640},[1641],{"items":1642},[1643,1648,1654,1659,1664,1669,1674,1679,1684],{"text":1644,"config":1645},"About",{"href":1646,"dataGaName":1647,"dataGaLocation":1360},"/company/","about",{"text":1649,"config":1650,"footerGa":1653},"Jobs",{"href":1651,"dataGaName":1652,"dataGaLocation":1360},"/jobs/","jobs",{"dataGaName":1652},{"text":1655,"config":1656},"Press",{"href":1657,"dataGaName":1658,"dataGaLocation":1360},"/press/","press",{"text":1660,"config":1661},"Handbook",{"href":1662,"dataGaName":1663,"dataGaLocation":1360},"https://handbook.gitlab.com/","handbook",{"text":1665,"config":1666},"Leadership",{"href":1667,"dataGaName":1668,"dataGaLocation":1360},"/company/team/e-group/","leadership",{"text":1670,"config":1671},"Investor relations",{"href":1672,"dataGaName":1673,"dataGaLocation":1360},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":1675,"config":1676},"Trust Center",{"href":1677,"dataGaName":1678,"dataGaLocation":1360},"/security/","trust center",{"text":1680,"config":1681},"AI Transparency Center",{"href":1682,"dataGaName":1683,"dataGaLocation":1360},"/ai-transparency-center/","ai transparency center",{"text":1685,"config":1686},"Newsletter",{"href":1687,"dataGaName":1688,"dataGaLocation":1360},"/company/contact/#contact-forms","newsletter",{"text":1690,"config":1691,"menu":1692},"Contact us",{"dataNavLevelOne":1638},{"type":1382,"columns":1693},[1694],{"items":1695},[1696,1701,1706],{"text":1697,"config":1698},"Talk to sales",{"href":1699,"dataGaName":1700,"dataGaLocation":1360},"/sales/","talk to sales",{"text":1702,"config":1703},"Support portal",{"href":1704,"dataGaName":1705,"dataGaLocation":1360},"https://support.gitlab.com/hc/en-us","support portal",{"text":1707,"config":1708},"Customer portal",{"href":1709,"dataGaName":1710,"dataGaLocation":1360},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":1712,"login":1713,"suggestions":1720},"Close",{"text":1714,"link":1715},"To search repositories and projects, login to",{"text":1716,"config":1717},"gitlab.com",{"href":1374,"dataGaName":1718,"dataGaLocation":1719},"search login","search",{"text":1721,"default":1722},"Suggestions",[1723,1726,1729,1731,1735,1739],{"text":1724,"config":1725},"GitLab Duo Agent Platform",{"href":1439,"dataGaName":1724,"dataGaLocation":1719},{"text":1727,"config":1728},"Code Suggestions (AI)",{"href":1439,"dataGaName":1727,"dataGaLocation":1719},{"text":1349,"config":1730},{"href":1393,"dataGaName":1349,"dataGaLocation":1719},{"text":1732,"config":1733},"GitLab on AWS",{"href":1734,"dataGaName":1732,"dataGaLocation":1719},"/partners/technology-partners/aws/",{"text":1736,"config":1737},"GitLab on Google Cloud",{"href":1738,"dataGaName":1736,"dataGaLocation":1719},"/partners/technology-partners/google-cloud-platform/",{"text":1740,"config":1741},"Why GitLab?",{"href":1742,"dataGaName":1740,"dataGaLocation":1719},"/why-gitlab/",{"freeTrial":1744,"mobileIcon":1749,"desktopIcon":1754,"secondaryButton":1757},{"text":1745,"config":1746},"Start free trial",{"href":1747,"dataGaName":1365,"dataGaLocation":1748},"https://gitlab.com/-/trials/new/","nav",{"altText":1750,"config":1751},"Gitlab Icon",{"src":1752,"dataGaName":1753,"dataGaLocation":1748},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":1750,"config":1755},{"src":1756,"dataGaName":1753,"dataGaLocation":1748},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":1758,"config":1759},"Get Started",{"href":1760,"dataGaName":1761,"dataGaLocation":1748},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":1763,"mobileIcon":1767,"desktopIcon":1769},{"text":1764,"config":1765},"Learn more about GitLab Duo",{"href":1439,"dataGaName":1766,"dataGaLocation":1748},"gitlab duo",{"altText":1750,"config":1768},{"src":1752,"dataGaName":1753,"dataGaLocation":1748},{"altText":1750,"config":1770},{"src":1756,"dataGaName":1753,"dataGaLocation":1748},{"button":1772,"mobileIcon":1777,"desktopIcon":1779},{"text":1773,"config":1774},"/switch",{"href":1775,"dataGaName":1776,"dataGaLocation":1748},"#contact","switch",{"altText":1750,"config":1778},{"src":1752,"dataGaName":1753,"dataGaLocation":1748},{"altText":1750,"config":1780},{"src":1781,"dataGaName":1753,"dataGaLocation":1748},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":1783,"mobileIcon":1788,"desktopIcon":1790},{"text":1784,"config":1785},"Back to pricing",{"href":1553,"dataGaName":1786,"dataGaLocation":1748,"icon":1787},"back to pricing","GoBack",{"altText":1750,"config":1789},{"src":1752,"dataGaName":1753,"dataGaLocation":1748},{"altText":1750,"config":1791},{"src":1756,"dataGaName":1753,"dataGaLocation":1748},{"title":1793,"button":1794,"config":1798},"GitLab Orbit is generally available. Increase agent accuracy and lower token cost",{"text":1458,"config":1795},{"href":1460,"dataGaName":1796,"dataGaLocation":1797},"orbit-ga-banner","global-banner",{"layout":1799,"disabled":1337},"release",{"data":1801},{"text":1802,"config":1803,"items":1808,"minimal":2036},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"twitter":1804,"facebook":1805,"youtube":1806,"linkedin":1807},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[1809,1857,1916,1963,2004],{"title":1551,"links":1810,"subMenu":1826},[1811,1816,1821],{"text":1812,"config":1813},"View plans",{"href":1553,"dataGaName":1814,"dataGaLocation":1815},"view plans","footer",{"text":1817,"config":1818},"Why Premium?",{"href":1819,"dataGaName":1820,"dataGaLocation":1815},"/pricing/premium/","why premium",{"text":1822,"config":1823},"Why Ultimate?",{"href":1824,"dataGaName":1825,"dataGaLocation":1815},"/pricing/ultimate/","why ultimate",[1827],{"title":1828,"links":1829},"Contact Us",[1830,1833,1835,1837,1842,1847,1852],{"text":1831,"config":1832},"Contact sales",{"href":1699,"dataGaName":1370,"dataGaLocation":1815},{"text":1702,"config":1834},{"href":1704,"dataGaName":1705,"dataGaLocation":1815},{"text":1707,"config":1836},{"href":1709,"dataGaName":1710,"dataGaLocation":1815},{"text":1838,"config":1839},"Status",{"href":1840,"dataGaName":1841,"dataGaLocation":1815},"https://status.gitlab.com/","status",{"text":1843,"config":1844},"Terms of use",{"href":1845,"dataGaName":1846,"dataGaLocation":1815},"/terms/","terms of use",{"text":1848,"config":1849},"Privacy statement",{"href":1850,"dataGaName":1851,"dataGaLocation":1815},"/privacy/","privacy statement",{"text":1853,"config":1854},"Cookie preferences",{"dataGaName":1855,"dataGaLocation":1815,"id":1856,"isOneTrustButton":130},"cookie preferences","ot-sdk-btn",{"title":1378,"links":1858,"subMenu":1874},[1859,1862,1864,1866,1868,1870],{"text":1860,"config":1861},"Explore the platform",{"href":1386,"dataGaName":1380,"dataGaLocation":1815},{"text":1437,"config":1863},{"href":1439,"dataGaName":1440,"dataGaLocation":1815},{"text":1349,"config":1865},{"href":1393,"dataGaName":1394,"dataGaLocation":1815},{"text":1442,"config":1867},{"href":1444,"dataGaName":1445,"dataGaLocation":1815},{"text":1424,"config":1869},{"href":1426,"dataGaName":1427,"dataGaLocation":1815},{"text":1871,"config":1872},"Why GitLab",{"href":1742,"dataGaName":1873,"dataGaLocation":1815},"why gitlab",[1875],{"title":1876,"links":1877},"Topics",[1878,1882,1887,1891,1896,1901,1906,1911],{"text":1349,"config":1879},{"href":1880,"dataGaName":1881,"dataGaLocation":1815},"/topics/ci-cd/","cicd",{"text":1883,"config":1884},"GitOps",{"href":1885,"dataGaName":1886,"dataGaLocation":1815},"/topics/gitops/","gitops",{"text":1389,"config":1888},{"href":1889,"dataGaName":1890,"dataGaLocation":1815},"/topics/devops/","devops",{"text":1892,"config":1893},"Version Control",{"href":1894,"dataGaName":1895,"dataGaLocation":1815},"/topics/version-control/","version control",{"text":1897,"config":1898},"DevSecOps",{"href":1899,"dataGaName":1900,"dataGaLocation":1815},"/topics/devsecops/","devsecops",{"text":1902,"config":1903},"Cloud Native",{"href":1904,"dataGaName":1905,"dataGaLocation":1815},"/topics/cloud-native/","cloud native",{"text":1907,"config":1908},"AI for Coding",{"href":1909,"dataGaName":1910,"dataGaLocation":1815},"/topics/devops/ai-for-coding/","ai for coding",{"text":1912,"config":1913},"Agentic AI",{"href":1914,"dataGaName":1915,"dataGaLocation":1815},"/topics/agentic-ai/","agentic ai",{"title":1463,"links":1917},[1918,1921,1924,1927,1930,1933,1935,1937,1939,1941,1943,1946,1948,1951,1955,1959],{"text":1919,"config":1920},"DevOps modernization",{"href":1478,"dataGaName":1479,"dataGaLocation":1815},{"text":1922,"config":1923},"Security modernization",{"href":1483,"dataGaName":1484,"dataGaLocation":1815},{"text":1925,"config":1926},"AI modernization",{"href":1488,"dataGaName":1489,"dataGaLocation":1815},{"text":1928,"config":1929},"Financial services",{"href":1514,"dataGaName":1515,"dataGaLocation":1815},{"text":1931,"config":1932},"Public sector",{"href":1519,"dataGaName":1520,"dataGaLocation":1815},{"text":1522,"config":1934},{"href":1524,"dataGaName":1525,"dataGaLocation":1815},{"text":1527,"config":1936},{"href":1529,"dataGaName":1530,"dataGaLocation":1815},{"text":1532,"config":1938},{"href":1534,"dataGaName":1535,"dataGaLocation":1815},{"text":1537,"config":1940},{"href":1539,"dataGaName":1540,"dataGaLocation":1815},{"text":1494,"config":1942},{"href":1496,"dataGaName":1497,"dataGaLocation":1815},{"text":1944,"config":1945},"Small business",{"href":1501,"dataGaName":1502,"dataGaLocation":1815},{"text":1504,"config":1947},{"href":1506,"dataGaName":1507,"dataGaLocation":1815},{"text":1883,"config":1949},{"href":1950,"dataGaName":1886,"dataGaLocation":1815},"/solutions/gitops/",{"text":1952,"config":1953},"Software composition analysis",{"href":1431,"dataGaName":1954,"dataGaLocation":1815},"software composition analysis",{"text":1956,"config":1957},"Value stream management",{"href":1449,"dataGaName":1958,"dataGaLocation":1815},"value stream management",{"text":1960,"config":1961},"All solutions",{"href":1470,"dataGaName":1962,"dataGaLocation":1815},"all solutions",{"title":1556,"links":1964},[1965,1970,1975,1977,1979,1981,1983,1985,1987,1989,1991,1993,1995,1997,2000],{"text":1966,"config":1967},"Install",{"href":1968,"dataGaName":1969,"dataGaLocation":1815},"/install/","install",{"text":1971,"config":1972},"Quick start guides",{"href":1973,"dataGaName":1974,"dataGaLocation":1815},"/get-started/","quick setup checklists",{"text":1569,"config":1976},{"href":1571,"dataGaName":1572,"dataGaLocation":1815},{"text":1574,"config":1978},{"href":1576,"dataGaName":1577,"dataGaLocation":1815},{"text":1579,"config":1980},{"href":1581,"dataGaName":1582,"dataGaLocation":1815},{"text":1584,"config":1982},{"href":1586,"dataGaName":1587,"dataGaLocation":1815},{"text":1589,"config":1984},{"href":1591,"dataGaName":1592,"dataGaLocation":1815},{"text":1602,"config":1986},{"href":1604,"dataGaName":1605,"dataGaLocation":1815},{"text":1607,"config":1988},{"href":1609,"dataGaName":1610,"dataGaLocation":1815},{"text":1612,"config":1990},{"href":1614,"dataGaName":1615,"dataGaLocation":1815},{"text":1617,"config":1992},{"href":1619,"dataGaName":1620,"dataGaLocation":1815},{"text":1622,"config":1994},{"href":1624,"dataGaName":1625,"dataGaLocation":1815},{"text":1685,"config":1996},{"href":1687,"dataGaName":1688,"dataGaLocation":1815},{"text":1998,"config":1999},"What's new",{"href":1633,"dataGaName":1634,"dataGaLocation":1815},{"text":2001,"config":2002},"All resources",{"href":1563,"dataGaName":2003,"dataGaLocation":1815},"all resources",{"title":1636,"links":2005},[2006,2008,2010,2012,2014,2016,2018,2020,2022,2026,2031],{"text":1644,"config":2007},{"href":1646,"dataGaName":1638,"dataGaLocation":1815},{"text":1649,"config":2009},{"href":1651,"dataGaName":1652,"dataGaLocation":1815},{"text":1655,"config":2011},{"href":1657,"dataGaName":1658,"dataGaLocation":1815},{"text":1660,"config":2013},{"href":1662,"dataGaName":1663,"dataGaLocation":1815},{"text":1665,"config":2015},{"href":1667,"dataGaName":1668,"dataGaLocation":1815},{"text":1670,"config":2017},{"href":1672,"dataGaName":1673,"dataGaLocation":1815},{"text":1675,"config":2019},{"href":1677,"dataGaName":1678,"dataGaLocation":1815},{"text":1680,"config":2021},{"href":1682,"dataGaName":1683,"dataGaLocation":1815},{"text":2023,"config":2024},"Sustainability",{"href":2025,"dataGaName":2023,"dataGaLocation":1815},"/sustainability/",{"text":2027,"config":2028},"Diversity, inclusion and belonging (DIB)",{"href":2029,"dataGaName":2030,"dataGaLocation":1815},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":2032,"config":2033},"Modern Slavery Transparency Statement",{"href":2034,"dataGaName":2035,"dataGaLocation":1815},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":2037},[2038,2041,2044],{"text":2039,"config":2040},"Terms",{"href":1845,"dataGaName":1846,"dataGaLocation":1815},{"text":2042,"config":2043},"Cookies",{"dataGaName":1855,"dataGaLocation":1815,"id":1856,"isOneTrustButton":130},{"text":2045,"config":2046},"Privacy",{"href":1850,"dataGaName":1851,"dataGaLocation":1815},[2048],{"id":2049,"title":7,"body":1336,"config":2050,"content":2052,"description":1336,"extension":2056,"meta":2057,"navigation":130,"path":2058,"seo":2059,"stem":2060,"__hash__":2061},"blogAuthors/en-us/blog/authors/andrew-fontaine.yml",{"template":2051},"BlogAuthor",{"name":7,"config":2053},{"headshot":2054,"ctfId":2055},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749672447/Blog/Author%20Headshots/afontaine-headshot.jpg","afontaine","yml",{},"/en-us/blog/authors/andrew-fontaine",{},"en-us/blog/authors/andrew-fontaine","kN6bHMAg-RIWbJyCicccQWOBGEY6BPs1UGnwX_7i1wA",[2063,2070,2078],{"title":2064,"description":2065,"heroImage":1338,"category":1332,"date":2066,"authors":2067,"slug":2069,"externalUrl":1336},"CEO Shadow Takeaways from Jacie","Recap of my experience in the CEO Shadow Program.","2021-05-18",[2068],"Jacie Bandur","ceo-shadow-recap",{"title":2071,"description":2072,"heroImage":2073,"category":1332,"date":2074,"authors":2075,"slug":2077,"externalUrl":1336},"Why I love contributing to GitLab","Making small meaningful changes is what it's all about.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749679501/Blog/Hero%20Images/new-feature.png","2021-05-11",[2076],"Austin Regnery","why-i-love-contributing-to-gitlab",{"title":2079,"description":2080,"heroImage":2081,"category":1332,"date":2074,"authors":2082,"slug":2084,"externalUrl":1336},"Placebo Lines on the Pipeline Graph","Have you noticed the connecting lines missing on your pipelines lately? Here's why","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749679507/Blog/Hero%20Images/ci-cd.png",[2083],"Sam Beckham","placebo-lines-on-the-pipeline-graph",{"header":2086,"text":2087,"button":2091,"disclaimer":2094},"Start your free\n\n30-day GitLab trial\n",[2088,2089,2090],"GitLab Duo Agent Platform access","Try our most advanced features","Automate complex tasks with AI",{"text":1362,"config":2092},{"href":2093,"dataGaName":1365,"dataGaLocation":1605},"https://gitlab.com/-/trials/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/blog/","No credit card required.",{"header":2096,"blurb":2097,"button":2098,"secondaryButton":2103},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":2099,"config":2100},"Get your free trial",{"href":2101,"dataGaName":1365,"dataGaLocation":2102},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":1831,"config":2104},{"href":1699,"dataGaName":1370,"dataGaLocation":2102},1794911792857]