[{"data":1,"prerenderedAt":1936},["ShallowReactive",2],{"/blog/setting-up-gitlab-ci-for-android-projects":3,"navigation-en-us":1153,"banner-en-us":1578,"footer-en-us":1588,"blog-post-authors-en-us-Jason Yavorska":1833,"blog-related-posts-en-us-setting-up-gitlab-ci-for-android-projects":1846,"blog-promotions-en-us":1872,"next-steps-en-us":1926},{"id":4,"title":5,"authors":6,"body":8,"category":1133,"date":1134,"description":1135,"extension":1136,"externalUrl":1137,"faq":1137,"featured":1138,"heroImage":1139,"meta":1140,"navigation":139,"path":1141,"seo":1142,"slug":1146,"stem":1147,"tags":1148,"template":1151,"updatedDate":1137,"__hash__":1152},"blogPosts/en-us/blog/setting-up-gitlab-ci-for-android-projects.md","Setting up GitLab CI for Android projects",[7],"Jason Yavorska",{"type":9,"value":10,"toc":1122},"minimark",[11,21,24,41,46,61,66,74,92,96,102,108,476,479,485,490,503,530,543,547,582,588,622,626,649,652,666,670,709,719,723,772,794,809,813,836,864,868,947,957,961,992,1001,1008,1041,1045,1056,1063,1066,1071,1077,1080,1084,1087,1104,1112,1115,1119],[12,13,14,15,20],"p",{},"Note: This is a new version of a previously published blog post, updated for the current Android API level (28). Thanks Grayson Parrelli for authoring ",[16,17,19],"a",{"href":18},"/blog/setting-up-gitlab-ci-for-android-projects/","the original post","!",[12,22,23],{},"Have you ever accidentally checked on a typo that broke your Android build or unknowingly broke an important use case with a new change? Continuous integration is a way for developers to avoid these headaches, allowing you to confirm that changes to your app compile, and your tests pass before they're merged in.",[12,25,26,30,31,35,36,40],{},[16,27,29],{"href":28},"/solutions/continuous-integration/","GitLab CI/CD"," is a wonderful ",[16,32,34],{"href":33},"/blog/continuous-integration-delivery-and-deployment-with-gitlab/","continuous integration"," built-in solution, and in this post we'll walk through how to set up a basic config file (",[37,38,39],"code",{},".gitlab-ci.yml",") to ensure your Android app compiles and passes unit and functional tests. We assume that you know the process of creating an Android app, can write and run tests locally, and are familiar with the basics of the GitLab UI.",[42,43,45],"h2",{"id":44},"our-sample-project","Our sample project",[12,47,48,49,54,55,60],{},"We'll be working with a real-world open source Android project called ",[16,50,53],{"href":51,"rel":52},"https://github.com/hidroh/materialistic",[],"Materialistic"," to demonstrate how easy it is to get up and running with GitLab CI for Android. Materialistic currently uses Travis CI with GitHub, but switching over is a breeze. If you haven't seen Materialistic before, it's a fantastic open source Android reader for ",[16,56,59],{"href":57,"rel":58},"https://news.ycombinator.com",[],"Hacker News",".",[62,63,65],"h3",{"id":64},"testing","Testing",[12,67,68,73],{},[16,69,72],{"href":70,"rel":71},"https://developer.android.com/training/testing/unit-testing/index.html",[],"Unit tests"," are the fundamental tests in your app testing strategy, from which you can verify that the logic of individual units is correct. They are a fantastic way to catch regressions when making changes to your app. They run directly on the Java Virtual Machine (JVM), so you don't need an actual Android device to run them.",[12,75,76,77,82,83,88,89,91],{},"If you already have working unit tests, you shouldn't have to make any adjustments to have them work with GitLab CI. Materialistic uses ",[16,78,81],{"href":79,"rel":80},"http://robolectric.org/",[],"Robolectric"," for tests, ",[16,84,87],{"href":85,"rel":86},"https://www.eclemma.org/jacoco/",[],"Jacoco"," for coverage, and also has a linting pass. We'll get all of these easily running in our ",[37,90,39],{}," example except for Jacoco, since that requires a secret token we do not have - though I will show you how to configure that in your own projects.",[42,93,95],{"id":94},"setting-up-gitlab-ci","Setting up GitLab CI",[12,97,98,99,101],{},"We want to be able to configure our project so that our app is built, and it has the complete suite of tests run upon check-in. To do so, we have to create our GitLab CI configuration file, called ",[37,100,39],{},", and place it in the root of our project.",[12,103,104,105,107],{},"So, first things first: If you're just here for a snippet to copy-paste, here is a ",[37,106,39],{}," that will build and test the Materialistic app:",[109,110,115],"pre",{"className":111,"code":112,"language":113,"meta":114,"style":114},"language-yml shiki shiki-themes github-light","image: openjdk:8-jdk\n\nvariables:\n  ANDROID_COMPILE_SDK: \"28\"\n  ANDROID_BUILD_TOOLS: \"28.0.2\"\n  ANDROID_SDK_TOOLS:   \"4333796\"\n\nbefore_script:\n  - apt-get --quiet update --yes\n  - apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1\n  - wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-${ANDROID_SDK_TOOLS}.zip\n  - unzip -d android-sdk-linux android-sdk.zip\n  - echo y | android-sdk-linux/tools/bin/sdkmanager \"platforms;android-${ANDROID_COMPILE_SDK}\" >/dev/null\n  - echo y | android-sdk-linux/tools/bin/sdkmanager \"platform-tools\" >/dev/null\n  - echo y | android-sdk-linux/tools/bin/sdkmanager \"build-tools;${ANDROID_BUILD_TOOLS}\" >/dev/null\n  - export ANDROID_HOME=$PWD/android-sdk-linux\n  - export PATH=$PATH:$PWD/android-sdk-linux/platform-tools/\n  - chmod +x ./gradlew\n  # temporarily disable checking for EPIPE error and use yes to accept all licenses\n  - set +o pipefail\n  - yes | android-sdk-linux/tools/bin/sdkmanager --licenses\n  - set -o pipefail\n\nstages:\n  - build\n  - test\n\nlintDebug:\n  stage: build\n  script:\n    - ./gradlew -Pci --console=plain :app:lintDebug -PbuildDir=lint\n\nassembleDebug:\n  stage: build\n  script:\n    - ./gradlew assembleDebug\n  artifacts:\n    paths:\n    - app/build/outputs/\n\ndebugTests:\n  stage: test\n  script:\n    - ./gradlew -Pci --console=plain :app:testDebug\n\n","yml","",[37,116,117,134,141,150,161,172,184,189,197,206,214,222,230,238,246,254,262,270,278,285,293,301,309,314,322,330,338,343,351,361,369,378,383,391,400,407,415,423,431,439,444,452,461,468],{"__ignoreMap":114},[118,119,122,126,130],"span",{"class":120,"line":121},"line",1,[118,123,125],{"class":124},"shJU0","image",[118,127,129],{"class":128},"sgsFI",": ",[118,131,133],{"class":132},"sYBdl","openjdk:8-jdk\n",[118,135,137],{"class":120,"line":136},2,[118,138,140],{"emptyLinePlaceholder":139},true,"\n",[118,142,144,147],{"class":120,"line":143},3,[118,145,146],{"class":124},"variables",[118,148,149],{"class":128},":\n",[118,151,153,156,158],{"class":120,"line":152},4,[118,154,155],{"class":124},"  ANDROID_COMPILE_SDK",[118,157,129],{"class":128},[118,159,160],{"class":132},"\"28\"\n",[118,162,164,167,169],{"class":120,"line":163},5,[118,165,166],{"class":124},"  ANDROID_BUILD_TOOLS",[118,168,129],{"class":128},[118,170,171],{"class":132},"\"28.0.2\"\n",[118,173,175,178,181],{"class":120,"line":174},6,[118,176,177],{"class":124},"  ANDROID_SDK_TOOLS",[118,179,180],{"class":128},":   ",[118,182,183],{"class":132},"\"4333796\"\n",[118,185,187],{"class":120,"line":186},7,[118,188,140],{"emptyLinePlaceholder":139},[118,190,192,195],{"class":120,"line":191},8,[118,193,194],{"class":124},"before_script",[118,196,149],{"class":128},[118,198,200,203],{"class":120,"line":199},9,[118,201,202],{"class":128},"  - ",[118,204,205],{"class":132},"apt-get --quiet update --yes\n",[118,207,209,211],{"class":120,"line":208},10,[118,210,202],{"class":128},[118,212,213],{"class":132},"apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1\n",[118,215,217,219],{"class":120,"line":216},11,[118,218,202],{"class":128},[118,220,221],{"class":132},"wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-${ANDROID_SDK_TOOLS}.zip\n",[118,223,225,227],{"class":120,"line":224},12,[118,226,202],{"class":128},[118,228,229],{"class":132},"unzip -d android-sdk-linux android-sdk.zip\n",[118,231,233,235],{"class":120,"line":232},13,[118,234,202],{"class":128},[118,236,237],{"class":132},"echo y | android-sdk-linux/tools/bin/sdkmanager \"platforms;android-${ANDROID_COMPILE_SDK}\" >/dev/null\n",[118,239,241,243],{"class":120,"line":240},14,[118,242,202],{"class":128},[118,244,245],{"class":132},"echo y | android-sdk-linux/tools/bin/sdkmanager \"platform-tools\" >/dev/null\n",[118,247,249,251],{"class":120,"line":248},15,[118,250,202],{"class":128},[118,252,253],{"class":132},"echo y | android-sdk-linux/tools/bin/sdkmanager \"build-tools;${ANDROID_BUILD_TOOLS}\" >/dev/null\n",[118,255,257,259],{"class":120,"line":256},16,[118,258,202],{"class":128},[118,260,261],{"class":132},"export ANDROID_HOME=$PWD/android-sdk-linux\n",[118,263,265,267],{"class":120,"line":264},17,[118,266,202],{"class":128},[118,268,269],{"class":132},"export PATH=$PATH:$PWD/android-sdk-linux/platform-tools/\n",[118,271,273,275],{"class":120,"line":272},18,[118,274,202],{"class":128},[118,276,277],{"class":132},"chmod +x ./gradlew\n",[118,279,281],{"class":120,"line":280},19,[118,282,284],{"class":283},"sAwPA","  # temporarily disable checking for EPIPE error and use yes to accept all licenses\n",[118,286,288,290],{"class":120,"line":287},20,[118,289,202],{"class":128},[118,291,292],{"class":132},"set +o pipefail\n",[118,294,296,298],{"class":120,"line":295},21,[118,297,202],{"class":128},[118,299,300],{"class":132},"yes | android-sdk-linux/tools/bin/sdkmanager --licenses\n",[118,302,304,306],{"class":120,"line":303},22,[118,305,202],{"class":128},[118,307,308],{"class":132},"set -o pipefail\n",[118,310,312],{"class":120,"line":311},23,[118,313,140],{"emptyLinePlaceholder":139},[118,315,317,320],{"class":120,"line":316},24,[118,318,319],{"class":124},"stages",[118,321,149],{"class":128},[118,323,325,327],{"class":120,"line":324},25,[118,326,202],{"class":128},[118,328,329],{"class":132},"build\n",[118,331,333,335],{"class":120,"line":332},26,[118,334,202],{"class":128},[118,336,337],{"class":132},"test\n",[118,339,341],{"class":120,"line":340},27,[118,342,140],{"emptyLinePlaceholder":139},[118,344,346,349],{"class":120,"line":345},28,[118,347,348],{"class":124},"lintDebug",[118,350,149],{"class":128},[118,352,354,357,359],{"class":120,"line":353},29,[118,355,356],{"class":124},"  stage",[118,358,129],{"class":128},[118,360,329],{"class":132},[118,362,364,367],{"class":120,"line":363},30,[118,365,366],{"class":124},"  script",[118,368,149],{"class":128},[118,370,372,375],{"class":120,"line":371},31,[118,373,374],{"class":128},"    - ",[118,376,377],{"class":132},"./gradlew -Pci --console=plain :app:lintDebug -PbuildDir=lint\n",[118,379,381],{"class":120,"line":380},32,[118,382,140],{"emptyLinePlaceholder":139},[118,384,386,389],{"class":120,"line":385},33,[118,387,388],{"class":124},"assembleDebug",[118,390,149],{"class":128},[118,392,394,396,398],{"class":120,"line":393},34,[118,395,356],{"class":124},[118,397,129],{"class":128},[118,399,329],{"class":132},[118,401,403,405],{"class":120,"line":402},35,[118,404,366],{"class":124},[118,406,149],{"class":128},[118,408,410,412],{"class":120,"line":409},36,[118,411,374],{"class":128},[118,413,414],{"class":132},"./gradlew assembleDebug\n",[118,416,418,421],{"class":120,"line":417},37,[118,419,420],{"class":124},"  artifacts",[118,422,149],{"class":128},[118,424,426,429],{"class":120,"line":425},38,[118,427,428],{"class":124},"    paths",[118,430,149],{"class":128},[118,432,434,436],{"class":120,"line":433},39,[118,435,374],{"class":128},[118,437,438],{"class":132},"app/build/outputs/\n",[118,440,442],{"class":120,"line":441},40,[118,443,140],{"emptyLinePlaceholder":139},[118,445,447,450],{"class":120,"line":446},41,[118,448,449],{"class":124},"debugTests",[118,451,149],{"class":128},[118,453,455,457,459],{"class":120,"line":454},42,[118,456,356],{"class":124},[118,458,129],{"class":128},[118,460,337],{"class":132},[118,462,464,466],{"class":120,"line":463},43,[118,465,366],{"class":124},[118,467,149],{"class":128},[118,469,471,473],{"class":120,"line":470},44,[118,472,374],{"class":128},[118,474,475],{"class":132},"./gradlew -Pci --console=plain :app:testDebug\n",[12,477,478],{},"Well, that's a lot of code! Let's break it down.",[62,480,482,483],{"id":481},"understanding-gitlab-ciyml","Understanding ",[37,484,39],{},[486,487,489],"h4",{"id":488},"defining-the-docker-image","Defining the Docker Image",[109,491,493],{"className":111,"code":492,"language":113,"meta":114,"style":114},"image: openjdk:8-jdk\n",[37,494,495],{"__ignoreMap":114},[118,496,497,499,501],{"class":120,"line":121},[118,498,125],{"class":124},[118,500,129],{"class":128},[118,502,133],{"class":132},[12,504,505,506,511,512,517,518,523,524,529],{},"This tells ",[16,507,510],{"href":508,"rel":509},"https://docs.gitlab.com/ci/runners/",[],"GitLab Runners"," (the things that are executing our build) what ",[16,513,516],{"href":514,"rel":515},"https://hub.docker.com/explore/",[],"Docker image"," to use. If you're not familiar with ",[16,519,522],{"href":520,"rel":521},"https://hub.docker.com/",[],"Docker",", the TL;DR is that Docker provides a way to create a completely isolated version of a virtual operating system running in its own ",[16,525,528],{"href":526,"rel":527},"https://www.sdxcentral.com/cloud/containers/definitions/what-is-docker-container-open-source-project/",[],"container",". Anything running inside the container thinks it has the whole machine to itself, but in reality there can be many containers running on a single machine. Unlike full virtual machines, Docker containers are super fast to create and destroy, making them great choices for setting up temporary environments for building and testing.",[12,531,532,533,542],{},"This ",[16,534,537,538,541],{"href":535,"rel":536},"https://hub.docker.com/_/openjdk/",[],"Docker image (",[37,539,540],{},"openjdk:8-jdk",")"," works perfectly for our use case, as it is just a barebones installation of Debian with Java pre-installed. We then run additional commands further down in our config to make our image capable of building Android apps.",[486,544,546],{"id":545},"defining-variables","Defining variables",[109,548,550],{"className":111,"code":549,"language":113,"meta":114,"style":114},"variables:\n  ANDROID_COMPILE_SDK: \"28\"\n  ANDROID_BUILD_TOOLS: \"28.0.2\"\n  ANDROID_SDK_TOOLS:   \"4333796\"\n\n",[37,551,552,558,566,574],{"__ignoreMap":114},[118,553,554,556],{"class":120,"line":121},[118,555,146],{"class":124},[118,557,149],{"class":128},[118,559,560,562,564],{"class":120,"line":136},[118,561,155],{"class":124},[118,563,129],{"class":128},[118,565,160],{"class":132},[118,567,568,570,572],{"class":120,"line":143},[118,569,166],{"class":124},[118,571,129],{"class":128},[118,573,171],{"class":132},[118,575,576,578,580],{"class":120,"line":152},[118,577,177],{"class":124},[118,579,180],{"class":128},[118,581,183],{"class":132},[12,583,584,585,60],{},"These are variables we'll use throughout our script. They're named to match the properties you would typically specify in your app's ",[37,586,587],{},"build.gradle",[589,590,591,601,610],"ul",{},[592,593,594,597,598,60],"li",{},[37,595,596],{},"ANDROID_COMPILE_SDK"," is the version of Android you're compiling with. It should match ",[37,599,600],{},"compileSdkVersion",[592,602,603,606,607,60],{},[37,604,605],{},"ANDROID_BUILD_TOOLS"," is the version of the Android build tools you are using. It should match ",[37,608,609],{},"buildToolsVersion",[592,611,612,615,616,621],{},[37,613,614],{},"ANDROID_SDK_TOOLS"," is a little funny. It's what version of the command line tools we're going to download from the ",[16,617,620],{"href":618,"rel":619},"https://developer.android.com/studio/index.html",[],"official site",". So, that number really just comes from the latest version available there.",[486,623,625],{"id":624},"installing-packages","Installing packages",[109,627,629],{"className":111,"code":628,"language":113,"meta":114,"style":114},"before_script:\n  - apt-get --quiet update --yes\n  - apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1\n\n",[37,630,631,637,643],{"__ignoreMap":114},[118,632,633,635],{"class":120,"line":121},[118,634,194],{"class":124},[118,636,149],{"class":128},[118,638,639,641],{"class":120,"line":136},[118,640,202],{"class":128},[118,642,205],{"class":132},[118,644,645,647],{"class":120,"line":143},[118,646,202],{"class":128},[118,648,213],{"class":132},[12,650,651],{},"This starts the block of the commands that will be run before each job in our config.",[12,653,654,655,658,659,658,662,665],{},"These commands ensure that our package repository listings are up to date, and it installs packages we'll be using later on, namely: ",[37,656,657],{},"wget",", ",[37,660,661],{},"tar",[37,663,664],{},"unzip",", and some packages that are necessary to allow 64-bit machines to run Android's 32-bit tools.",[486,667,669],{"id":668},"installing-the-android-sdk","Installing the Android SDK",[109,671,673],{"className":111,"code":672,"language":113,"meta":114,"style":114},"\n  - wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-${ANDROID_SDK_TOOLS}.zip\n  - unzip -d android-sdk-linux android-sdk.zip\n  - echo y | android-sdk-linux/tools/bin/sdkmanager \"platforms;android-${ANDROID_COMPILE_SDK}\" >/dev/null\n  - echo y | android-sdk-linux/tools/bin/sdkmanager \"platform-tools\" >/dev/null\n  - echo y | android-sdk-linux/tools/bin/sdkmanager \"build-tools;${ANDROID_BUILD_TOOLS}\" >/dev/null\n\n",[37,674,675,679,685,691,697,703],{"__ignoreMap":114},[118,676,677],{"class":120,"line":121},[118,678,140],{"emptyLinePlaceholder":139},[118,680,681,683],{"class":120,"line":136},[118,682,202],{"class":128},[118,684,221],{"class":132},[118,686,687,689],{"class":120,"line":143},[118,688,202],{"class":128},[118,690,229],{"class":132},[118,692,693,695],{"class":120,"line":152},[118,694,202],{"class":128},[118,696,237],{"class":132},[118,698,699,701],{"class":120,"line":163},[118,700,202],{"class":128},[118,702,245],{"class":132},[118,704,705,707],{"class":120,"line":174},[118,706,202],{"class":128},[118,708,253],{"class":132},[12,710,711,712,714,715,718],{},"Here we're downloading the Android SDK tools from their official location, using our ",[37,713,614],{}," variable to specify the version. Afterwards, we're unzipping the tools and running a series of ",[37,716,717],{},"sdkmanager"," commands to install the necessary Android SDK packages that will allow our app to build.",[486,720,722],{"id":721},"setting-up-the-environment","Setting up the environment",[109,724,726],{"className":111,"code":725,"language":113,"meta":114,"style":114},"\n  - export ANDROID_HOME=$PWD/android-sdk-linux\n  - export PATH=$PATH:$PWD/android-sdk-linux/platform-tools/\n  - chmod +x ./gradlew\n  # temporarily disable checking for EPIPE error and use yes to accept all licenses\n  - set +o pipefail\n  - yes | android-sdk-linux/tools/bin/sdkmanager --licenses\n  - set -o pipefail\n\n",[37,727,728,732,738,744,750,754,760,766],{"__ignoreMap":114},[118,729,730],{"class":120,"line":121},[118,731,140],{"emptyLinePlaceholder":139},[118,733,734,736],{"class":120,"line":136},[118,735,202],{"class":128},[118,737,261],{"class":132},[118,739,740,742],{"class":120,"line":143},[118,741,202],{"class":128},[118,743,269],{"class":132},[118,745,746,748],{"class":120,"line":152},[118,747,202],{"class":128},[118,749,277],{"class":132},[118,751,752],{"class":120,"line":163},[118,753,284],{"class":283},[118,755,756,758],{"class":120,"line":174},[118,757,202],{"class":128},[118,759,292],{"class":132},[118,761,762,764],{"class":120,"line":186},[118,763,202],{"class":128},[118,765,300],{"class":132},[118,767,768,770],{"class":120,"line":191},[118,769,202],{"class":128},[118,771,308],{"class":132},[12,773,774,775,777,778,781,782,785,786,789,790,793],{},"Finally, we wrap up the ",[37,776,194],{}," section of our config with a few remaining tasks. First, we set the ",[37,779,780],{},"ANDROID_HOME"," environment variable to the SDK location, which is necessary for our app to build. Next, we add the platform tools to our ",[37,783,784],{},"PATH",", allowing us to use the ",[37,787,788],{},"adb"," command without specifying its full path, which is important when we run a downloaded script later. Next, we ensure that ",[37,791,792],{},"gradlew"," is executable, as sometimes Git will mess up permissions.",[12,795,796,797,800,801,804,805,808],{},"The next command ",[37,798,799],{},"yes | android-sdk-linux/tools/bin/sdkmanager --licenses"," is responsible for accepting the SDK licenses. Because the unix ",[37,802,803],{},"yes"," command results in an EPIPE error once the pipe is broken (when the sdkmanager quits normally), we temporarily wrap the command in ",[37,806,807],{},"+o pipefile"," so that it does not terminate script execution when it fails.",[486,810,812],{"id":811},"defining-the-stages","Defining the stages",[109,814,816],{"className":111,"code":815,"language":113,"meta":114,"style":114},"stages:\n  - build\n  - test\n\n",[37,817,818,824,830],{"__ignoreMap":114},[118,819,820,822],{"class":120,"line":121},[118,821,319],{"class":124},[118,823,149],{"class":128},[118,825,826,828],{"class":120,"line":136},[118,827,202],{"class":128},[118,829,329],{"class":132},[118,831,832,834],{"class":120,"line":143},[118,833,202],{"class":128},[118,835,337],{"class":132},[12,837,838,839,843,844,849,850,853,854,857,858,860,861,863],{},"Here we're defining the different ",[16,840,319],{"href":841,"rel":842},"https://docs.gitlab.com/ci/yaml/#stages",[]," of our build. We can call these anything we want. A stage can be thought of as a group of ",[16,845,848],{"href":846,"rel":847},"https://docs.gitlab.com/ci/jobs/",[],"jobs",". All of the jobs in the same stage happen in parallel, and all jobs in one stage must be completed before the jobs in the subsequent stage begin. We've defined two stages: ",[37,851,852],{},"build"," and ",[37,855,856],{},"test",". They do exactly what you think: the ",[37,859,852],{}," stage ensures the app compiles, and the ",[37,862,856],{}," stage runs our unit and functional tests.",[486,865,867],{"id":866},"building-the-app","Building the app",[109,869,871],{"className":111,"code":870,"language":113,"meta":114,"style":114},"lintDebug:\n  stage: build\n  script:\n    - ./gradlew -Pci --console=plain :app:lintDebug -PbuildDir=lint\n\nassembleDebug:\n  stage: build\n  script:\n    - ./gradlew assembleDebug\n  artifacts:\n    paths:\n    - app/build/outputs/\n\n",[37,872,873,879,887,893,899,903,909,917,923,929,935,941],{"__ignoreMap":114},[118,874,875,877],{"class":120,"line":121},[118,876,348],{"class":124},[118,878,149],{"class":128},[118,880,881,883,885],{"class":120,"line":136},[118,882,356],{"class":124},[118,884,129],{"class":128},[118,886,329],{"class":132},[118,888,889,891],{"class":120,"line":143},[118,890,366],{"class":124},[118,892,149],{"class":128},[118,894,895,897],{"class":120,"line":152},[118,896,374],{"class":128},[118,898,377],{"class":132},[118,900,901],{"class":120,"line":163},[118,902,140],{"emptyLinePlaceholder":139},[118,904,905,907],{"class":120,"line":174},[118,906,388],{"class":124},[118,908,149],{"class":128},[118,910,911,913,915],{"class":120,"line":186},[118,912,356],{"class":124},[118,914,129],{"class":128},[118,916,329],{"class":132},[118,918,919,921],{"class":120,"line":191},[118,920,366],{"class":124},[118,922,149],{"class":128},[118,924,925,927],{"class":120,"line":199},[118,926,374],{"class":128},[118,928,414],{"class":132},[118,930,931,933],{"class":120,"line":208},[118,932,420],{"class":124},[118,934,149],{"class":128},[118,936,937,939],{"class":120,"line":216},[118,938,428],{"class":124},[118,940,149],{"class":128},[118,942,943,945],{"class":120,"line":224},[118,944,374],{"class":128},[118,946,438],{"class":132},[12,948,949,950,952,953,956],{},"This defines our first job, called ",[37,951,852],{},". It has two parts - a linter to ensure that the submitted code is up to snuff, and the actual compilation of the code (and configuration of the ",[37,954,955],{},"artifacts"," that GitLab should expect to find). These are run in parallel for maximum efficiency.",[486,958,960],{"id":959},"running-tests","Running tests",[109,962,964],{"className":111,"code":963,"language":113,"meta":114,"style":114},"debugTests:\n  stage: test\n  script:\n    - ./gradlew -Pci --console=plain :app:testDebug\n\n",[37,965,966,972,980,986],{"__ignoreMap":114},[118,967,968,970],{"class":120,"line":121},[118,969,449],{"class":124},[118,971,149],{"class":128},[118,973,974,976,978],{"class":120,"line":136},[118,975,356],{"class":124},[118,977,129],{"class":128},[118,979,337],{"class":132},[118,981,982,984],{"class":120,"line":143},[118,983,366],{"class":124},[118,985,149],{"class":128},[118,987,988,990],{"class":120,"line":152},[118,989,374],{"class":128},[118,991,475],{"class":132},[12,993,994,995,997,998,1000],{},"This defines a job called ",[37,996,449],{}," that runs during the ",[37,999,856],{}," stage. Nothing too crazy here about setting something simple like this up!",[12,1002,1003,1004,1007],{},"If we had wanted to get Jacoco also working, that would be very straightforward. Simply adding a section as follows would work - the only additional thing you'd need to do is add a secret variable containing your personal ",[37,1005,1006],{},"COVERALLS_REPO_TOKEN",":",[109,1009,1011],{"className":111,"code":1010,"language":113,"meta":114,"style":114},"coverageTests:\n  stage: test\n  script:\n    - ./gradlew -Pci --console=plain jacocoTestReport coveralls\n\n",[37,1012,1013,1020,1028,1034],{"__ignoreMap":114},[118,1014,1015,1018],{"class":120,"line":121},[118,1016,1017],{"class":124},"coverageTests",[118,1019,149],{"class":128},[118,1021,1022,1024,1026],{"class":120,"line":136},[118,1023,356],{"class":124},[118,1025,129],{"class":128},[118,1027,337],{"class":132},[118,1029,1030,1032],{"class":120,"line":143},[118,1031,366],{"class":124},[118,1033,149],{"class":128},[118,1035,1036,1038],{"class":120,"line":152},[118,1037,374],{"class":128},[118,1039,1040],{"class":132},"./gradlew -Pci --console=plain jacocoTestReport coveralls\n",[42,1042,1044],{"id":1043},"run-your-new-ci-setup","Run your new CI setup",[12,1046,1047,1048,1050,1051,1055],{},"After you've added your new ",[37,1049,39],{}," file to the root of your directory, just push your changes to the appropriate branch and off you go! You can see your running builds in the ",[1052,1053,1054],"strong",{},"Pipelines"," tab of your project. You can even watch your build execute live and see the runner's output, allowing you to debug problems easily.",[12,1057,1058],{},[1059,1060],"img",{"alt":1061,"src":1062},"Pipelines tab screenshot","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398346/blog/Content%20Images/gitlab-ci-for-android-2018/tutorial-01.png",[12,1064,1065],{},"After your build is done, you can retrieve your build artifacts:",[589,1067,1068],{},[592,1069,1070],{},"First, click on your completed build, then navigate to the Jobs tab:",[12,1072,1073],{},[1059,1074],{"alt":1075,"src":1076},"Build details button screenshot","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782398346/blog/Content%20Images/gitlab-ci-for-android-2018/tutorial-02.png",[12,1078,1079],{},"From here, simply click on the download button to download your build artifacts.",[42,1081,1083],{"id":1082},"conclusion","Conclusion",[12,1085,1086],{},"So, there you have it! You now know how to create a GitLab CI config that will ensure your app:",[589,1088,1089,1092,1095],{},[592,1090,1091],{},"Compiles",[592,1093,1094],{},"Passes tests",[592,1096,1097,1098,1103],{},"Allows you to access your build artifacts (like your ",[16,1099,1102],{"href":1100,"rel":1101},"https://en.wikipedia.org/wiki/Android_application_package",[],"APK",") afterwards.",[12,1105,1106,1107],{},"You can take a look at my local copy of the Materialistic repository, with everything up and running, at ",[16,1108,1111],{"href":1109,"rel":1110},"https://gitlab.com/jyavorska/androidblog-2018",[],"this link",[12,1113,1114],{},"Enjoy your newfound app stability :)",[1116,1117,1118],"style",{},"\n  img {\n    display: block;\n    margin: 0 auto 20px auto;\n  }\n  .special-h4 {\n    margin-top: 20px !important;\n  }\n",[1116,1120,1121],{},"html pre.shiki code .shJU0, html code.shiki .shJU0{--shiki-default:#22863A}html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}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":114,"searchDepth":136,"depth":136,"links":1123},[1124,1127,1131,1132],{"id":44,"depth":136,"text":45,"children":1125},[1126],{"id":64,"depth":143,"text":65},{"id":94,"depth":136,"text":95,"children":1128},[1129],{"id":481,"depth":143,"text":1130},"Understanding .gitlab-ci.yml",{"id":1043,"depth":136,"text":1044},{"id":1082,"depth":136,"text":1083},"engineering","2018-10-24","Learn how to set up GitLab CI to ensure your Android app compiles and passes tests.","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749666699/Blog/Hero%20Images/banner.jpg",{},"/en-us/blog/setting-up-gitlab-ci-for-android-projects",{"title":5,"description":1135,"ogTitle":5,"ogDescription":1135,"noIndex":1138,"ogImage":1139,"ogUrl":1143,"ogSiteName":1144,"ogType":1145,"canonicalUrls":1143},"https://about.gitlab.com/blog/setting-up-gitlab-ci-for-android-projects","https://about.gitlab.com","article","setting-up-gitlab-ci-for-android-projects","en-us/blog/setting-up-gitlab-ci-for-android-projects",[1149,1150],"CI/CD","user stories","BlogPost","m0m121_PAzmolL-Fkfx8APditEzCpliRQRffGo58eLk",{"logo":1154,"freeTrial":1159,"sales":1164,"login":1169,"items":1174,"search":1498,"minimal":1529,"duo":1548,"switchNav":1557,"pricingDeployment":1568},{"config":1155},{"href":1156,"dataGaName":1157,"dataGaLocation":1158},"/","gitlab logo","header",{"text":1160,"config":1161},"Get free trial",{"href":1162,"dataGaName":1163,"dataGaLocation":1158},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":1165,"config":1166},"Request a demo",{"href":1167,"dataGaName":1168,"dataGaLocation":1158},"/sales/?contact-topic=request-demo","sales",{"text":1170,"config":1171},"Sign in",{"href":1172,"dataGaName":1173,"dataGaLocation":1158},"https://gitlab.com/users/sign_in/","sign in",[1175,1204,1302,1307,1421,1476],{"text":1176,"config":1177,"menu":1179},"Platform",{"dataNavLevelOne":1178},"platform",{"type":1180,"columns":1181},"cards",[1182,1188,1196],{"title":1176,"description":1183,"link":1184},"The intelligent orchestration platform for DevSecOps",{"text":1185,"config":1186},"Explore our Platform",{"href":1187,"dataGaName":1178,"dataGaLocation":1158},"/platform/",{"title":1189,"description":1190,"link":1191},"GitLab Duo Agent Platform","Agentic AI for the entire software lifecycle",{"text":1192,"config":1193},"Meet GitLab Duo",{"href":1194,"dataGaName":1195,"dataGaLocation":1158},"/gitlab-duo-agent-platform/","gitlab duo agent platform",{"title":1197,"description":1198,"link":1199},"Why GitLab","See the top reasons enterprises choose GitLab",{"text":1200,"config":1201},"Learn more",{"href":1202,"dataGaName":1203,"dataGaLocation":1158},"/why-gitlab/","why gitlab",{"text":1205,"left":139,"config":1206,"menu":1208},"Product",{"dataNavLevelOne":1207},"solutions",{"type":1209,"link":1210,"columns":1214,"feature":1281},"lists",{"text":1211,"config":1212},"View all Solutions",{"href":1213,"dataGaName":1207,"dataGaLocation":1158},"/solutions/",[1215,1237,1260],{"title":1216,"description":1217,"link":1218,"items":1223},"Automation","CI/CD and automation to accelerate deployment",{"config":1219},{"icon":1220,"href":1221,"dataGaName":1222,"dataGaLocation":1158},"AutomatedCodeAlt","/solutions/delivery-automation/","automated software delivery",[1224,1226,1229,1233],{"text":1149,"config":1225},{"href":28,"dataGaLocation":1158,"dataGaName":1149},{"text":1189,"config":1227},{"href":1194,"dataGaLocation":1158,"dataGaName":1228},"gitlab duo agent platform - product menu",{"text":1230,"config":1231},"Source Code Management",{"href":1232,"dataGaLocation":1158,"dataGaName":1230},"/solutions/source-code-management/",{"text":1234,"config":1235},"Automated Software Delivery",{"href":1221,"dataGaLocation":1158,"dataGaName":1236},"Automated software delivery",{"title":1238,"description":1239,"link":1240,"items":1245},"Security","Deliver code faster without compromising security",{"config":1241},{"href":1242,"dataGaName":1243,"dataGaLocation":1158,"icon":1244},"/solutions/application-security-testing/","security and compliance","ShieldCheckLight",[1246,1250,1255],{"text":1247,"config":1248},"Application Security Testing",{"href":1242,"dataGaName":1249,"dataGaLocation":1158},"Application security testing",{"text":1251,"config":1252},"Software Supply Chain Security",{"href":1253,"dataGaLocation":1158,"dataGaName":1254},"/solutions/supply-chain/","Software supply chain security",{"text":1256,"config":1257},"Software Compliance",{"href":1258,"dataGaName":1259,"dataGaLocation":1158},"/solutions/software-compliance/","software compliance",{"title":1261,"link":1262,"items":1267},"Measurement",{"config":1263},{"icon":1264,"href":1265,"dataGaName":1266,"dataGaLocation":1158},"DigitalTransformation","/solutions/visibility-measurement/","visibility and measurement",[1268,1272,1276],{"text":1269,"config":1270},"Visibility & Measurement",{"href":1265,"dataGaLocation":1158,"dataGaName":1271},"Visibility and Measurement",{"text":1273,"config":1274},"Value Stream Management",{"href":1275,"dataGaLocation":1158,"dataGaName":1273},"/solutions/value-stream-management/",{"text":1277,"config":1278},"Analytics & Insights",{"href":1279,"dataGaLocation":1158,"dataGaName":1280},"/solutions/analytics-and-insights/","Analytics and insights",{"title":1282,"type":1209,"items":1283},"GitLab for",[1284,1290,1296],{"text":1285,"config":1286},"Enterprise",{"icon":1287,"href":1288,"dataGaLocation":1158,"dataGaName":1289},"Building","/enterprise/","enterprise",{"text":1291,"config":1292},"Small Business",{"icon":1293,"href":1294,"dataGaLocation":1158,"dataGaName":1295},"Work","/small-business/","small business",{"text":1297,"config":1298},"Public Sector",{"icon":1299,"href":1300,"dataGaLocation":1158,"dataGaName":1301},"Organization","/solutions/public-sector/","public sector",{"text":1303,"config":1304},"Pricing",{"href":1305,"dataGaName":1306,"dataGaLocation":1158,"dataNavLevelOne":1306},"/pricing/","pricing",{"text":1308,"config":1309,"menu":1311},"Resources",{"dataNavLevelOne":1310},"resources",{"type":1209,"link":1312,"columns":1316,"feature":1410},{"text":1313,"config":1314},"View all resources",{"href":1315,"dataGaName":1310,"dataGaLocation":1158},"/resources/",[1317,1350,1377],{"title":1318,"items":1319},"Getting started",[1320,1325,1330,1335,1340,1345],{"text":1321,"config":1322},"Install",{"href":1323,"dataGaName":1324,"dataGaLocation":1158},"/install/","install",{"text":1326,"config":1327},"Quick start guides",{"href":1328,"dataGaName":1329,"dataGaLocation":1158},"/get-started/","quick setup checklists",{"text":1331,"config":1332},"Learn",{"href":1333,"dataGaLocation":1158,"dataGaName":1334},"https://university.gitlab.com/","learn",{"text":1336,"config":1337},"Product documentation",{"href":1338,"dataGaName":1339,"dataGaLocation":1158},"https://docs.gitlab.com/","product documentation",{"text":1341,"config":1342},"Best practice videos",{"href":1343,"dataGaName":1344,"dataGaLocation":1158},"/getting-started-videos/","best practice videos",{"text":1346,"config":1347},"Integrations",{"href":1348,"dataGaName":1349,"dataGaLocation":1158},"/integrations/","integrations",{"title":1351,"items":1352},"Discover",[1353,1358,1363,1368,1372],{"text":1354,"config":1355},"Customer success stories",{"href":1356,"dataGaName":1357,"dataGaLocation":1158},"/customers/","customer success stories",{"text":1359,"config":1360},"Blog",{"href":1361,"dataGaName":1362,"dataGaLocation":1158},"/blog/","blog",{"text":1364,"config":1365},"Demo Hub",{"href":1366,"dataGaName":1367,"dataGaLocation":1158},"/demo-hub/","demo hub",{"text":1369,"config":1370},"The Source",{"href":1371,"dataGaName":1362,"dataGaLocation":1158},"/the-source/",{"text":1373,"config":1374},"Remote",{"href":1375,"dataGaName":1376,"dataGaLocation":1158},"https://handbook.gitlab.com/handbook/company/culture/all-remote/","remote",{"title":1378,"items":1379},"Connect",[1380,1385,1390,1395,1400,1405],{"text":1381,"config":1382},"GitLab Services",{"href":1383,"dataGaName":1384,"dataGaLocation":1158},"/services/","services",{"text":1386,"config":1387},"Contribute",{"href":1388,"dataGaName":1389,"dataGaLocation":1158},"https://contributors.gitlab.com","contribute",{"text":1391,"config":1392},"Community",{"href":1393,"dataGaName":1394,"dataGaLocation":1158},"/community/","community",{"text":1396,"config":1397},"Forum",{"href":1398,"dataGaName":1399,"dataGaLocation":1158},"https://forum.gitlab.com/","forum",{"text":1401,"config":1402},"Events",{"href":1403,"dataGaName":1404,"dataGaLocation":1158},"/events/","events",{"text":1406,"config":1407},"Partners",{"href":1408,"dataGaName":1409,"dataGaLocation":1158},"/partners/","partners",{"config":1411,"title":1414,"text":1415,"link":1416},{"background":1412,"textColor":1413},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1777322348/qpq8yrgn8knii57omj0c.png')","#000","What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":1417,"config":1418},"Read the latest",{"href":1419,"dataGaName":1420,"dataGaLocation":1158},"/whats-new/","whats new",{"text":1422,"config":1423,"menu":1425},"Company",{"dataNavLevelOne":1424},"company",{"type":1209,"columns":1426},[1427],{"items":1428},[1429,1434,1439,1441,1446,1451,1456,1461,1466,1471],{"text":1430,"config":1431},"About",{"href":1432,"dataGaName":1433,"dataGaLocation":1158},"/company/","about",{"text":1435,"config":1436,"footerGa":1438},"Jobs",{"href":1437,"dataGaName":848,"dataGaLocation":1158},"/jobs/",{"dataGaName":848},{"text":1401,"config":1440},{"href":1403,"dataGaName":1404,"dataGaLocation":1158},{"text":1442,"config":1443},"Leadership",{"href":1444,"dataGaName":1445,"dataGaLocation":1158},"/company/team/e-group/","leadership",{"text":1447,"config":1448},"Handbook",{"href":1449,"dataGaName":1450,"dataGaLocation":1158},"https://handbook.gitlab.com/","handbook",{"text":1452,"config":1453},"Investor relations",{"href":1454,"dataGaName":1455,"dataGaLocation":1158},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":1457,"config":1458},"Trust Center",{"href":1459,"dataGaName":1460,"dataGaLocation":1158},"/security/","trust center",{"text":1462,"config":1463},"AI Transparency Center",{"href":1464,"dataGaName":1465,"dataGaLocation":1158},"/ai-transparency-center/","ai transparency center",{"text":1467,"config":1468},"Newsletter",{"href":1469,"dataGaName":1470,"dataGaLocation":1158},"/company/contact/#contact-forms","newsletter",{"text":1472,"config":1473},"Press",{"href":1474,"dataGaName":1475,"dataGaLocation":1158},"/press/","press",{"text":1477,"config":1478,"menu":1479},"Contact us",{"dataNavLevelOne":1424},{"type":1209,"columns":1480},[1481],{"items":1482},[1483,1488,1493],{"text":1484,"config":1485},"Talk to sales",{"href":1486,"dataGaName":1487,"dataGaLocation":1158},"/sales/","talk to sales",{"text":1489,"config":1490},"Support portal",{"href":1491,"dataGaName":1492,"dataGaLocation":1158},"https://support.gitlab.com/hc/en-us","support portal",{"text":1494,"config":1495},"Customer portal",{"href":1496,"dataGaName":1497,"dataGaLocation":1158},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":1499,"login":1500,"suggestions":1507},"Close",{"text":1501,"link":1502},"To search repositories and projects, login to",{"text":1503,"config":1504},"gitlab.com",{"href":1172,"dataGaName":1505,"dataGaLocation":1506},"search login","search",{"text":1508,"default":1509},"Suggestions",[1510,1512,1516,1518,1522,1526],{"text":1189,"config":1511},{"href":1194,"dataGaName":1189,"dataGaLocation":1506},{"text":1513,"config":1514},"Code Suggestions (AI)",{"href":1515,"dataGaName":1513,"dataGaLocation":1506},"/solutions/code-suggestions/",{"text":1149,"config":1517},{"href":28,"dataGaName":1149,"dataGaLocation":1506},{"text":1519,"config":1520},"GitLab on AWS",{"href":1521,"dataGaName":1519,"dataGaLocation":1506},"/partners/technology-partners/aws/",{"text":1523,"config":1524},"GitLab on Google Cloud",{"href":1525,"dataGaName":1523,"dataGaLocation":1506},"/partners/technology-partners/google-cloud-platform/",{"text":1527,"config":1528},"Why GitLab?",{"href":1202,"dataGaName":1527,"dataGaLocation":1506},{"freeTrial":1530,"mobileIcon":1535,"desktopIcon":1540,"secondaryButton":1543},{"text":1531,"config":1532},"Start free trial",{"href":1533,"dataGaName":1163,"dataGaLocation":1534},"https://gitlab.com/-/trials/new/","nav",{"altText":1536,"config":1537},"Gitlab Icon",{"src":1538,"dataGaName":1539,"dataGaLocation":1534},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":1536,"config":1541},{"src":1542,"dataGaName":1539,"dataGaLocation":1534},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":1544,"config":1545},"Get Started",{"href":1546,"dataGaName":1547,"dataGaLocation":1534},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":1549,"mobileIcon":1553,"desktopIcon":1555},{"text":1550,"config":1551},"Learn more about GitLab Duo",{"href":1194,"dataGaName":1552,"dataGaLocation":1534},"gitlab duo",{"altText":1536,"config":1554},{"src":1538,"dataGaName":1539,"dataGaLocation":1534},{"altText":1536,"config":1556},{"src":1542,"dataGaName":1539,"dataGaLocation":1534},{"button":1558,"mobileIcon":1563,"desktopIcon":1565},{"text":1559,"config":1560},"/switch",{"href":1561,"dataGaName":1562,"dataGaLocation":1534},"#contact","switch",{"altText":1536,"config":1564},{"src":1538,"dataGaName":1539,"dataGaLocation":1534},{"altText":1536,"config":1566},{"src":1567,"dataGaName":1539,"dataGaLocation":1534},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":1569,"mobileIcon":1574,"desktopIcon":1576},{"text":1570,"config":1571},"Back to pricing",{"href":1305,"dataGaName":1572,"dataGaLocation":1534,"icon":1573},"back to pricing","GoBack",{"altText":1536,"config":1575},{"src":1538,"dataGaName":1539,"dataGaLocation":1534},{"altText":1536,"config":1577},{"src":1542,"dataGaName":1539,"dataGaLocation":1534},{"title":1579,"titleMobile":1580,"button":1581,"config":1586},"Duo Agent Platform delivers 400% ROI, per new Forrester Consulting study.","400% ROI: Forrester TEI for GitLab Duo",{"text":1200,"config":1582},{"href":1583,"dataGaName":1584,"dataGaLocation":1585},"https://about.gitlab.com/blog/gitlab-duo-agent-platform-delivers-400-percent-roi/","forrester-tei-dap-banner","global-banner",{"layout":1587,"disabled":1138},"release",{"data":1589},{"text":1590,"source":1591,"edit":1597,"contribute":1602,"config":1607,"items":1612,"minimal":1822},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"text":1592,"config":1593},"View page source",{"href":1594,"dataGaName":1595,"dataGaLocation":1596},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/","page source","footer",{"text":1598,"config":1599},"Edit this page",{"href":1600,"dataGaName":1601,"dataGaLocation":1596},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/-/blob/main/content/","web ide",{"text":1603,"config":1604},"Please contribute",{"href":1605,"dataGaName":1606,"dataGaLocation":1596},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/-/blob/main/CONTRIBUTING.md/","please contribute",{"twitter":1608,"facebook":1609,"youtube":1610,"linkedin":1611},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[1613,1660,1714,1758,1790],{"title":1303,"links":1614,"subMenu":1629},[1615,1619,1624],{"text":1616,"config":1617},"View plans",{"href":1305,"dataGaName":1618,"dataGaLocation":1596},"view plans",{"text":1620,"config":1621},"Why Premium?",{"href":1622,"dataGaName":1623,"dataGaLocation":1596},"/pricing/premium/","why premium",{"text":1625,"config":1626},"Why Ultimate?",{"href":1627,"dataGaName":1628,"dataGaLocation":1596},"/pricing/ultimate/","why ultimate",[1630],{"title":1631,"links":1632},"Contact Us",[1633,1636,1638,1640,1645,1650,1655],{"text":1634,"config":1635},"Contact sales",{"href":1486,"dataGaName":1168,"dataGaLocation":1596},{"text":1489,"config":1637},{"href":1491,"dataGaName":1492,"dataGaLocation":1596},{"text":1494,"config":1639},{"href":1496,"dataGaName":1497,"dataGaLocation":1596},{"text":1641,"config":1642},"Status",{"href":1643,"dataGaName":1644,"dataGaLocation":1596},"https://status.gitlab.com/","status",{"text":1646,"config":1647},"Terms of use",{"href":1648,"dataGaName":1649,"dataGaLocation":1596},"/terms/","terms of use",{"text":1651,"config":1652},"Privacy statement",{"href":1653,"dataGaName":1654,"dataGaLocation":1596},"/privacy/","privacy statement",{"text":1656,"config":1657},"Cookie preferences",{"dataGaName":1658,"dataGaLocation":1596,"id":1659,"isOneTrustButton":139},"cookie preferences","ot-sdk-btn",{"title":1205,"links":1661,"subMenu":1670},[1662,1666],{"text":1663,"config":1664},"DevSecOps platform",{"href":1187,"dataGaName":1665,"dataGaLocation":1596},"devsecops platform",{"text":1667,"config":1668},"AI-Assisted Development",{"href":1194,"dataGaName":1669,"dataGaLocation":1596},"ai-assisted development",[1671],{"title":1672,"links":1673},"Topics",[1674,1679,1684,1689,1694,1699,1704,1709],{"text":1675,"config":1676},"CICD",{"href":1677,"dataGaName":1678,"dataGaLocation":1596},"/topics/ci-cd/","cicd",{"text":1680,"config":1681},"GitOps",{"href":1682,"dataGaName":1683,"dataGaLocation":1596},"/topics/gitops/","gitops",{"text":1685,"config":1686},"DevOps",{"href":1687,"dataGaName":1688,"dataGaLocation":1596},"/topics/devops/","devops",{"text":1690,"config":1691},"Version Control",{"href":1692,"dataGaName":1693,"dataGaLocation":1596},"/topics/version-control/","version control",{"text":1695,"config":1696},"DevSecOps",{"href":1697,"dataGaName":1698,"dataGaLocation":1596},"/topics/devsecops/","devsecops",{"text":1700,"config":1701},"Cloud Native",{"href":1702,"dataGaName":1703,"dataGaLocation":1596},"/topics/cloud-native/","cloud native",{"text":1705,"config":1706},"AI for Coding",{"href":1707,"dataGaName":1708,"dataGaLocation":1596},"/topics/devops/ai-for-coding/","ai for coding",{"text":1710,"config":1711},"Agentic AI",{"href":1712,"dataGaName":1713,"dataGaLocation":1596},"/topics/agentic-ai/","agentic ai",{"title":1715,"links":1716},"Solutions",[1717,1719,1721,1726,1730,1733,1737,1740,1742,1745,1748,1753],{"text":1247,"config":1718},{"href":1242,"dataGaName":1247,"dataGaLocation":1596},{"text":1236,"config":1720},{"href":1221,"dataGaName":1222,"dataGaLocation":1596},{"text":1722,"config":1723},"Agile development",{"href":1724,"dataGaName":1725,"dataGaLocation":1596},"/solutions/agile-delivery/","agile delivery",{"text":1727,"config":1728},"SCM",{"href":1232,"dataGaName":1729,"dataGaLocation":1596},"source code management",{"text":1675,"config":1731},{"href":28,"dataGaName":1732,"dataGaLocation":1596},"continuous integration & delivery",{"text":1734,"config":1735},"Value stream management",{"href":1275,"dataGaName":1736,"dataGaLocation":1596},"value stream management",{"text":1680,"config":1738},{"href":1739,"dataGaName":1683,"dataGaLocation":1596},"/solutions/gitops/",{"text":1285,"config":1741},{"href":1288,"dataGaName":1289,"dataGaLocation":1596},{"text":1743,"config":1744},"Small business",{"href":1294,"dataGaName":1295,"dataGaLocation":1596},{"text":1746,"config":1747},"Public sector",{"href":1300,"dataGaName":1301,"dataGaLocation":1596},{"text":1749,"config":1750},"Education",{"href":1751,"dataGaName":1752,"dataGaLocation":1596},"/solutions/education/","education",{"text":1754,"config":1755},"Financial services",{"href":1756,"dataGaName":1757,"dataGaLocation":1596},"/solutions/finance/","financial services",{"title":1308,"links":1759},[1760,1762,1764,1766,1769,1771,1774,1776,1778,1780,1782,1784,1786,1788],{"text":1321,"config":1761},{"href":1323,"dataGaName":1324,"dataGaLocation":1596},{"text":1326,"config":1763},{"href":1328,"dataGaName":1329,"dataGaLocation":1596},{"text":1331,"config":1765},{"href":1333,"dataGaName":1334,"dataGaLocation":1596},{"text":1336,"config":1767},{"href":1338,"dataGaName":1768,"dataGaLocation":1596},"docs",{"text":1359,"config":1770},{"href":1361,"dataGaName":1362,"dataGaLocation":1596},{"text":1772,"config":1773},"What's new",{"href":1419,"dataGaName":1420,"dataGaLocation":1596},{"text":1354,"config":1775},{"href":1356,"dataGaName":1357,"dataGaLocation":1596},{"text":1373,"config":1777},{"href":1375,"dataGaName":1376,"dataGaLocation":1596},{"text":1381,"config":1779},{"href":1383,"dataGaName":1384,"dataGaLocation":1596},{"text":1386,"config":1781},{"href":1388,"dataGaName":1389,"dataGaLocation":1596},{"text":1391,"config":1783},{"href":1393,"dataGaName":1394,"dataGaLocation":1596},{"text":1396,"config":1785},{"href":1398,"dataGaName":1399,"dataGaLocation":1596},{"text":1401,"config":1787},{"href":1403,"dataGaName":1404,"dataGaLocation":1596},{"text":1406,"config":1789},{"href":1408,"dataGaName":1409,"dataGaLocation":1596},{"title":1422,"links":1791},[1792,1794,1796,1798,1800,1802,1806,1811,1813,1815,1817],{"text":1430,"config":1793},{"href":1432,"dataGaName":1424,"dataGaLocation":1596},{"text":1435,"config":1795},{"href":1437,"dataGaName":848,"dataGaLocation":1596},{"text":1442,"config":1797},{"href":1444,"dataGaName":1445,"dataGaLocation":1596},{"text":1447,"config":1799},{"href":1449,"dataGaName":1450,"dataGaLocation":1596},{"text":1452,"config":1801},{"href":1454,"dataGaName":1455,"dataGaLocation":1596},{"text":1803,"config":1804},"Sustainability",{"href":1805,"dataGaName":1803,"dataGaLocation":1596},"/sustainability/",{"text":1807,"config":1808},"Diversity, inclusion and belonging (DIB)",{"href":1809,"dataGaName":1810,"dataGaLocation":1596},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":1457,"config":1812},{"href":1459,"dataGaName":1460,"dataGaLocation":1596},{"text":1467,"config":1814},{"href":1469,"dataGaName":1470,"dataGaLocation":1596},{"text":1472,"config":1816},{"href":1474,"dataGaName":1475,"dataGaLocation":1596},{"text":1818,"config":1819},"Modern Slavery Transparency Statement",{"href":1820,"dataGaName":1821,"dataGaLocation":1596},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":1823},[1824,1827,1830],{"text":1825,"config":1826},"Terms",{"href":1648,"dataGaName":1649,"dataGaLocation":1596},{"text":1828,"config":1829},"Cookies",{"dataGaName":1658,"dataGaLocation":1596,"id":1659,"isOneTrustButton":139},{"text":1831,"config":1832},"Privacy",{"href":1653,"dataGaName":1654,"dataGaLocation":1596},[1834],{"id":1835,"title":7,"body":1137,"config":1836,"content":1838,"description":1137,"extension":113,"meta":1841,"navigation":139,"path":1842,"seo":1843,"stem":1844,"__hash__":1845},"blogAuthors/en-us/blog/authors/jason-yavorska.yml",{"template":1837},"BlogAuthor",{"name":7,"config":1839},{"headshot":114,"ctfId":1840},"jyavorska",{},"/en-us/blog/authors/jason-yavorska",{},"en-us/blog/authors/jason-yavorska","eFtNS4VsB5vvAsfbNZ0pGZ1cC600ZgmmRzLEDxetiGk",[1847,1856,1864],{"title":1848,"description":1849,"heroImage":1850,"category":1133,"date":1851,"authors":1852,"slug":1855,"externalUrl":1137},"Confidential AI for GitLab Self-Hosted","Give developers AI coding agents in GitLab Duo without source code leaving a hardware-encrypted boundary — no GPUs needed.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1773866173/vte9qh8rriznvyclhkes.png","2026-08-06",[1853,1854],"Mathias Ewald","Martin Paloncy, Edgeless Systems","confidential-ai-for-gitlab-self-hosted",{"title":1857,"description":1858,"heroImage":1859,"category":1133,"date":1860,"authors":1861,"slug":1863,"externalUrl":1137},"Green DevOps: Why carbon measurement belongs in your CI/CD pipeline","CI/CD pipelines have a hidden carbon cost. Here's why measuring it matters, and how you can get started with Eco CI and Carmen in GitLab.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1765809212/noh0mdfn9o94ry9ykura.png","2026-07-09",[1862],"Lysanne Pinto","green-devops-carbon-measurement-cicd-pipeline",{"title":1865,"description":1866,"heroImage":1867,"category":1133,"date":1868,"authors":1869,"slug":1871,"externalUrl":1137},"How to build CI/CD observability at scale","This practical guide to GitLab pipeline analytics helps self-managed users gain operational insights using Prometheus and Grafana.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1774465167/n5hlvrsrheadeccyr1oz.png","2026-04-28",[1870],"Paul Meresanu","how-to-build-ci-cd-observability-at-scale",{"promotions":1873},[1874,1888,1900,1912],{"id":1875,"categories":1876,"header":1878,"text":1879,"button":1880,"image":1885},"ai-modernization",[1877],"ai","Is AI achieving its promise at scale?","Quiz will take 5 minutes or less",{"text":1881,"config":1882},"Get your AI maturity score",{"href":1883,"dataGaName":1884,"dataGaLocation":1362},"/assessments/ai-modernization-assessment/","modernization assessment",{"config":1886},{"src":1887},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138786/qix0m7kwnd8x2fh1zq49.png",{"id":1889,"categories":1890,"header":1892,"text":1879,"button":1893,"image":1897},"devops-modernization",[1891,1698],"product","Are you just managing tools or shipping innovation?",{"text":1894,"config":1895},"Get your DevOps maturity score",{"href":1896,"dataGaName":1884,"dataGaLocation":1362},"/assessments/devops-modernization-assessment/",{"config":1898},{"src":1899},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138785/eg818fmakweyuznttgid.png",{"id":1901,"categories":1902,"header":1904,"text":1879,"button":1905,"image":1909},"security-modernization",[1903],"security","Are you trading speed for security?",{"text":1906,"config":1907},"Get your security maturity score",{"href":1908,"dataGaName":1884,"dataGaLocation":1362},"/assessments/security-modernization-assessment/",{"config":1910},{"src":1911},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138786/p4pbqd9nnjejg5ds6mdk.png",{"id":1913,"paths":1914,"header":1917,"text":1918,"button":1919,"image":1924},"github-azure-migration",[1915,1916],"migration-from-azure-devops-to-gitlab","integrating-azure-devops-scm-and-gitlab","Is your team ready for GitHub's Azure move?","GitHub is already rebuilding around Azure. Find out what it means for you.",{"text":1920,"config":1921},"See how GitLab compares to GitHub",{"href":1922,"dataGaName":1923,"dataGaLocation":1362},"/compare/gitlab-vs-github/github-azure-migration/","github azure migration",{"config":1925},{"src":1899},{"header":1927,"blurb":1928,"button":1929,"secondaryButton":1934},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":1930,"config":1931},"Get your free trial",{"href":1932,"dataGaName":1163,"dataGaLocation":1933},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":1634,"config":1935},{"href":1486,"dataGaName":1168,"dataGaLocation":1933},1786803752594]