gitlab-ci | DEPRECATED - Please use the GitLab.com issue tracker | Stream Processing library

 by   gitlabhq Ruby Version: v5.1.0 License: MIT

kandi X-RAY | gitlab-ci Summary

kandi X-RAY | gitlab-ci Summary

gitlab-ci is a Ruby library typically used in Data Processing, Stream Processing applications. gitlab-ci has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

DEPRECATED - Please use the GitLab.com issue tracker
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              gitlab-ci has a medium active ecosystem.
              It has 1454 star(s) with 327 fork(s). There are 130 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              gitlab-ci has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of gitlab-ci is v5.1.0

            kandi-Quality Quality

              gitlab-ci has 0 bugs and 0 code smells.

            kandi-Security Security

              gitlab-ci has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              gitlab-ci code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              gitlab-ci is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              gitlab-ci releases are available to install and integrate.
              gitlab-ci saves you 2448 person hours of effort in developing the same functionality from scratch.
              It has 5331 lines of code, 341 functions and 158 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed gitlab-ci and discovered the below as its top functions. This is intended to give you an instant insight into gitlab-ci implemented functionality, and help decide if they suit your requirements.
            • Handles a sequence of terminals .
            • Create a new git project .
            • Dump database to database .
            • Convert string into ANSI format .
            • Returns a hash of all the attributes for the given params .
            • Collects for the month
            • Collects the date for the given date
            • Renders the given resource .
            • Send a build message
            • Send an email
            Get all kandi verified functions for this library.

            gitlab-ci Key Features

            No Key Features are available at this moment for gitlab-ci.

            gitlab-ci Examples and Code Snippets

            No Code Snippets are available at this moment for gitlab-ci.

            Community Discussions

            QUESTION

            Why pull docker image before building it in gitlab-ci?
            Asked 2022-Mar-30 at 18:47

            I am learning GitLab-ci and a few things puzzle me. So here is a build job I found while googling:

            ...

            ANSWER

            Answered 2022-Mar-30 at 18:47

            You should pull the image to take advantage of cached layers so that you don't build layers again unnecessarily. This results in faster builds, faster updates for people pulling new images, and more efficient use of storage in your container registry.

            You can read more about this in the GitLab docs: Make Docker-in-Docker builds faster with Docker layer caching

            For your additional questions:

            Regarding --ssh default: see the docker documentation on this.

            Regarding BUILDKIT, in short, in enables faster and more efficient builds.

            Source https://stackoverflow.com/questions/71680495

            QUESTION

            Set directory of .gitlab-ci.yml via REST
            Asked 2022-Mar-30 at 18:41

            Gitlab allows you to change the place it looks for the .gitlab-ci.yml file:

            I want to change this location via REST in all projects of a gitlab group.

            Although I browsed through the gitlab rest api description, I was not able to find the right endpoint.

            Can somebody help me?

            ...

            ANSWER

            Answered 2022-Mar-30 at 18:41

            This is the edit project API. The parameter controlling this is the ci_config_path.

            Source https://stackoverflow.com/questions/71680739

            QUESTION

            How can I run background tasks in Gitlab CICD?
            Asked 2022-Mar-30 at 00:14

            How can I run a service-based command after the build process in gitlab-ci.yml?

            For example, i'd like to run:

            ...

            ANSWER

            Answered 2022-Mar-29 at 06:38

            As mentioned here:

            Process started with Runner, even if you add nohup and & at the end, is marked with process group ID.
            When the job is finished, the Runner is sending a kill signal to the whole process group.
            So any process started directly from CI job will be terminated at job end.

            Using a systenter code hereemd service (as in this same page) remains an option, if you control the target server.

            Source https://stackoverflow.com/questions/71657411

            QUESTION

            Run specific jobs in gitlab scheduled pipeline
            Asked 2022-Mar-15 at 08:17

            I have composed a gitlab-ci.yml file consisting of multiple gitlab jobs and stages. Some jobs run on specific git branches when code is merged to that branch and some jobs are scheduled.

            I want to create a scheduled CI/CD pipeline in Gitlab which only contains specific scheduled jobs and not all the scheduled jobs. Is that possible?

            For Example this is my gitlab-ci.yml file.

            ...

            ANSWER

            Answered 2022-Mar-14 at 11:36

            Use only:variables: and set those variables in your schedules.

            Source https://stackoverflow.com/questions/71466932

            QUESTION

            gitlab: How to have a another gitlab-ci.yml and use it whenever i want, instead of automatic triggering
            Asked 2022-Mar-07 at 10:47

            I have a gitlab-ci.yml file, which gets triggered when I commit changes.

            I want to have another file gitlab-ci-notrigger.yml which will not be triggered. But I can use this to run pipeline whenever i want manually

            ...

            ANSWER

            Answered 2022-Mar-07 at 09:48

            You can create a job than must be run manually

            You can require that a job doesn’t run unless a user starts it.
            This is called a manual job.

            You might want to use a manual job for something like deploying to production.

            To specify a job as manual, add when: manual to the job in the .gitlab-ci.yml file.

            By default, manual jobs display as skipped when the pipeline starts.

            The OP adds:

            Source https://stackoverflow.com/questions/71375026

            QUESTION

            How do I authenticate using a managed identity from gitlab-ci to push a docker container from gitlab registry to Azure web service?
            Asked 2022-Feb-28 at 21:55

            I have researched the way to push docker images from gitlab container registry to an azure resource: Pushing Docker image from gitlab-ci to Azure Container Registry

            I have also found the documentation to create managed identities (both system-assigned and user-assigned) in the Azure docs

            I am missing to connect the dots on how I can use az login —-identity in a gitlab-ci.ymlfile to access an azure app service. The purpose is to push a docker image from gitlab container registry.

            • How can I do this?
            • How do I need to configure the azure app service (identity / access control)?
            • Are there any security concerns? If yes, is az login —-service-principal a more secure way to do this? Or any other authentication procedure? ssh?

            Thank you for your help in advance! 🙏

            ...

            ANSWER

            Answered 2022-Feb-28 at 21:55

            You can use a GitLab CI Job JWT token to login to Azure from within a CI/CD pipeline without needing to store secrets in a GitLab project. In order to do this, you will also need to configure OpenID Connect (OIDC) for ID federation between GitLab and an Azure service principal. This is recommended by Microsoft for authenticating to Azure from CI/CD services, among other use cases.

            Note: Using OIDC as described below will only work if you are using gitlab.com or a publicly reachable GitLab instance. This is because Azure needs to connect to the token issuer for the keys to validate the token. If you are self-hosting GitLab and your instance is not publicly accessible, you can choose a different credential type for step 2.

            1. Create a registered app

            First, you will need to register an Application in Azure. You can do this by following these instructions to register an application and create a service principal.

            After doing this, make note of the values for Application (client) ID and Directory (tenant) ID (found in the application Overview pane). These values will be needed for step 3.

            2. Add the federated credentials

            Once your app is registered, you can add federated credentials to the application's service principal. In the Azure portal, go to registered apps -> your application. In the sidebar, select Certificates & secrets. Under the Federated credentials tab, click the "Add credential" button

            Use the following parameters for the credential configuration:

            Federated credential sceanrio: Other issuer
            Issuer: your gitlab URL e.g. https://gitlab.example.com
            Subject Identifier: The value of the sub claim to match. For example, to allow jobs on the main branch of the contoso/myproject project to use this service principal, use project_path:contoso/myproject:ref_type:branch:ref:main
            Name: Any descriptive name for the federated credental (e.g. contoso-myproject-main)
            Description: Optional, a description for the federated credential.
            Audience: your GitLab URL e.g. https://gitlab.example.com

            3. Authenticate to Azure in your job

            After the federated credentials are created, you can leverage the CI_JOB_JWT_V2 token in your job to authenticate with Azure. In this example, we'll use the Azure CLI (az login).

            Source https://stackoverflow.com/questions/71285687

            QUESTION

            How to eliminate code repitition in a ".gitlab-ci.yml"-script that uses stages that are almost identical?
            Asked 2022-Feb-24 at 07:59

            I have a gitlab-ci/cd.yaml-file that executes 2 test scripts. As you can see there is a lot of repetition going on. As a matter of fact, both stages are identical, except for their "script" value.

            For the smoke-suite the value is

            • npm run docker_smoke --single-run --progress false

            For the regression-suite the value is

            • npm run docker_regression --single-run --progress false
            ...

            ANSWER

            Answered 2022-Feb-23 at 16:03

            You can define templates and then extend your jobs with them.

            Documentation: https://docs.gitlab.com/ee/ci/yaml/#extends

            Example:

            Source https://stackoverflow.com/questions/71239487

            QUESTION

            GitLab Runner fails to upload artifacts with "invalid argument" error
            Asked 2022-Feb-08 at 15:22

            I'm completely new to trying to implement GitLab's CI/CD pipelines, but it's been going quite well. In fact, for my ASP.NET project, if I specify a Publish Profile in the msbuild command that uses Web Deploy, it actually deploys the code successfully to the web server.

            However, I'm now wanting to have the "build" job create artifacts which are uploaded to GitLab that I can then subsequently deploy. We're using a self-hosted instance of GitLab, for which I'm not an admin, but I can speak to the admin if I know what I'm asking for!

            So I've configured my gitlab-ci.yml file like this:

            ...

            ANSWER

            Answered 2022-Feb-08 at 15:22

            After countless hours working on this, it seems that ultimately the issue was that our internal Web Application Firewall was blocking some part of the transfer of artefacts to the server, or the response back from it. With the WAF reconfigured not to block traffic from the machine running the GitLab Runner, the artefacts are successfully uploaded and the job succeeds.

            This would have been significantly easier to diagnose if the logging from GitLab was better. As per my comment on this issue, it should be possible to see the content of the response from the GitLab server after uploading artefacts, even when the response code is 200.

            What's strange - and made diagnosing the issue even harder - is that when I worked through the issue with the admin of our GitLab instance, digging through logs and running it in debug mode, the artefact upload process was uploading something successfully. We could see, for example, the GitLab Runner's log had been uploaded to the server. Clearly the WAF's blocking was selective and didn't block everything in both directions.

            Source https://stackoverflow.com/questions/70880840

            QUESTION

            Set a variable according to another variable
            Asked 2022-Jan-28 at 07:41

            I am working on a gitlab-ci project.
            I have a variable A that I retrieve from a form.
            I have to set another variable B in my playbook.

            If A matches a certain regex, B should be ' -p A' else B should be an empty string ''.
            This should be written in an Ansible file.

            I have tried

            ...

            ANSWER

            Answered 2022-Jan-27 at 22:05

            You do have three issues, I would say:

            1. you should use an inline if expression of Jinja rather than a when
            2. the backslash of the digit pattern have to be escaped to produce a valid in YAML: \\d
            3. I guess the regex do not match what you think it does, to match between one and eight digit(s), the quantifier have to be used with a comma (,) to separate the minimum and the maximum repetition of the previous pattern, not a dash (-): \\d{1,8}

            All together

            Source https://stackoverflow.com/questions/70885842

            QUESTION

            Is it possible to use a private GitLab repo as a remote include in GitLab CI? If so, how?
            Asked 2022-Jan-27 at 10:43

            Given that I have a private repo with this file:

            https://gitlab.com/myuser/snippets/-/raw/main/snippets.yml

            ...

            ANSWER

            Answered 2022-Jan-27 at 10:43

            This can be achieved even with a nicer and easier way to handle this.

            You can use a special syntax for gitlab, as long as they are on the same instance. you can specify a project and optional ref and the file with this syntax like

            Source https://stackoverflow.com/questions/70867747

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install gitlab-ci

            You can download it from GitHub.
            On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/gitlabhq/gitlab-ci.git

          • CLI

            gh repo clone gitlabhq/gitlab-ci

          • sshUrl

            git@github.com:gitlabhq/gitlab-ci.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Stream Processing Libraries

            gulp

            by gulpjs

            webtorrent

            by webtorrent

            aria2

            by aria2

            ZeroNet

            by HelloZeroNet

            qBittorrent

            by qbittorrent

            Try Top Libraries by gitlabhq

            gitlabhq

            by gitlabhqRuby

            gitlab-recipes

            by gitlabhqRuby

            gitlab-shell

            by gitlabhqGo

            omnibus-gitlab

            by gitlabhqRuby