简体   繁体   中英

How to configure GitLab CI job for running Gatling tests integrated with sbt?

I applied sbt plugin for using Gatling and now I have no idea how to run my scenarios in GitLab CI. Does somebody have such experience?

Resolved. How to run gatling scenarios in gitlab pipeline:

image: "hseeberger/scala-sbt:8u252_1.3.10_2.13.2"

stages:
  - testLoad

load:
  stage: testLoad
  when: manual
  script:
    - sbt gatling:test
  artifacts:
    paths:
      - "target/gatling/"
    expire_in: 1 week
    when: always

The most plug-and-play solution is to use FrontLine , our Enterprise version.

Even though we don't have a plugin like we do for Jenkins, Bamboo and TeamCity, as GitLab CI doesn't provide a plugin API, we provide a shell script that implements the same load of FrontLine REST API calls.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM