Answers: <p>Gitlab CI/CD offers Docker Engine. If you can create a docker image, you can serve the application the same way as you were doing with Jenkins. You can find more details on how to integrate both <a href="https://docs.gitlab.com/ee/ci/docker/README.html" rel="nofollow noreferrer">here</a>. </p>
  
  <p>Hope it helps.</p>
  
Answers: CC BY-SA 4.0
Answers: 2019-10-17T14:40:37.910Z
Answers: 2019-10-17T14:40:37.910Z
Answers: Nikhil Gupta
Body: <p>In the company that I work, the frontend application is very complex, so one of our layers of testing includes building/serving the application and testing with integrations mocked (The application isn't deployed anywhere on this step).</p>
  
  <p>Right now we are trying to migrate from Jenkins to Gitlab CI, but I have no clue how to do this. I have the build artifact (Some html/css/js) but I couln't find any information how to share the artifact with some Gitlab CI <code>service</code>.</p>
  
  <p>Basically what I want do achieve is Build -> Serve the application that was built -> Run some tests on it </p>
  
  <p>Is it possible to do this?</p>
  
Comments: CC BY-SA 4.0
Comments: 2019-10-17T14:27:15.367Z
Comments: What do you mean by serving the application? How were you doing it with Jenkins?
Comments: Nikhil Gupta
Comments: CC BY-SA 4.0
Comments: 2019-10-17T14:33:50.697Z
Comments: @NikhilGupta in Jenkins we take the build artifact (html, css and js) and build a docker container with nginx serving the artifact
Comments: André Roggeri Campos
Tags: <continuous-integration><gitlab><gitlab-ci-runner>
Title: Serve an application built by the pipeline
UserDisplayName: André Roggeri Campos
ThreadText: # Serve an application built by the pipeline
  
  (Asked by: username_0 on 2019-10-17)
  
  In the company that I work, the frontend application is very complex, so one of our layers of testing includes building/serving the application and testing with integrations mocked (The application isn't deployed anywhere on this step).
  
  Right now we are trying to migrate from Jenkins to Gitlab CI, but I have no clue how to do this. I have the build artifact (Some html/css/js) but I couln't find any information how to share the artifact with some Gitlab CI `service`.
  
  Basically what I want do achieve is Build -> Serve the application that was built -> Run some tests on it
  
  Is it possible to do this?
  
  **Tags:** continuous-integration, gitlab, gitlab-ci-runner
  
  > **Comments:**
  > **username_1**: What do you mean by serving the application? How were you doing it with Jenkins?  
  > **username_0**: @username_1 in Jenkins we take the build artifact (html, css and js) and build a docker container with nginx serving the artifact  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-10-17. Score: 1
  
  Gitlab CI/CD offers Docker Engine. If you can create a docker image, you can serve the application the same way as you were doing with Jenkins. You can find more details on how to integrate both [here](https://docs.gitlab.com/ee/ci/docker/README.html).
  
  Hope it helps.
  
  
  ---
  
  