Questions tagged [continuous-integration]
Continuous integration (CI) is the building and automated testing of the full software product on a frequent schedule: at least once a day, often several times a day and sometimes as often as after every check in to the version control system.
12,953
questions
0
votes
0
answers
6
views
CI/CD, Phpunit: Not connecting to the database
I have the following problem while inserting phpunit inside ci/cd pipeline. The idea behind phpunit that I am using test database with fixtures, and I am deleting content inside tables between every ...
-1
votes
0
answers
15
views
i want to use param in remap function to set the url and add the next url that is present in param without delecting other param. please show me how
here is the controller
class Levels extends CI_Controller{
function _remap($alias,$param=array())
{
$a =str_replace('_','-',$alias);
if(isset($param)!=''){
if(isset($param[3])!=''){
...
0
votes
0
answers
7
views
Setting Rule to run on Merge Request disable previous jobs and stages
I am learning Gitlab CI. Any help would be much appreciated!
I am trying to run the job deploy review on merge request. Here is a snippet:
deploy review:
stage: deploy review
rules:
- if: $...
0
votes
1
answer
13
views
How to reduce docker output in CI
When running Docker in CI we get lots and lots (and lots) of lines like
abc123 Extracting [=================================================> ] 237.3MB/239.3MB
is it possible to pass a switch or ...
0
votes
0
answers
25
views
Building and executing C code using azure
I am a beginner with CI and trying to wrap my head around how the CI file functions.
I have a simple project with a C file, which prints out some statements.
#include <stdio.h>
int main(){ ...
0
votes
1
answer
20
views
How do deploy a single build to multiple stages (environments) using github actions
What I have
a simple workflows with two job (Build and Deploy)
name: build
on:
push:
branches: [ master, ci ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-...
0
votes
1
answer
35
views
Azure PR Build gets invalidated when the version file is committed in the build pipeline
I am trying to create an Azure DevOps build pipeline. I have a script in the build pipeline that bumps up the version number, updates the version.h file and commits that file to the git repo. But as ...
0
votes
1
answer
22
views
GitHub Actions step executed while it shouldn't, based on a conditional
I have the following steps' sequence in a GitHub Actions job (first one is used more or less for debugging purposes
env:
FAIL_OUTCOME: 'fail'
- name: debug
shell: bash
run: |
...
0
votes
0
answers
26
views
How do I install a Linux build runner for bitbucket using rust?
I have a CI server in an AWS cloud which hosts out BitBucket.
The runners are on a separate EC2 instance.
The code we are using is Rust.
I installed the runners on a windows EC2 and everything is fine....
0
votes
0
answers
12
views
Access to output from steps executed with matrix strategy in GitHub Actions
I am running a GitHub Actions job with matrix strategy, more or less as follows
- name: ${{ matrix.users }}-${{ matrix.comment-type }}
id: ${{ matrix.users }}-${{ matrix.comment-type }}
...
1
vote
0
answers
9
views
Wordpress CI/CD with database?
So, I want to implement CI/CD with wordpress project, but database is the problem.
Are there any solutions for some kind of "synchronization" of the database, at least not complete? Or at ...
0
votes
0
answers
6
views
GitHub Branch protection rule settings doesn't list CodeBuild project
I am working on integrating codebuild project with GitHub to run as required action for PRs as a Branch Protection Rule.
CodeBuild Settings :
Connected with GItHub Oauth
Enabled status badges
Enabled ...
0
votes
0
answers
16
views
How to automatically re-run GitHub workflow after the base branch was changed for a PR?
I have a GitHub workflow that protects a master branch from unwanted merges. When I open a "wrong" PR to a master, the workflow fails the PR (that is what I expect). My problem is - when I ...
1
vote
0
answers
18
views
Github actions with `github` protocol in `npm ci`
Here's my node.js.yml:
name: Node.js CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:...
0
votes
1
answer
30
views
Azure pipelines running version of build pipeline on build policy
Which branch does the build pipeline runs on a PR? I mean, you can set a build pipeline to run during a PR, but the docs doesn't clarify from which branch version does this pipeline will run. My teams ...
0
votes
1
answer
11
views
Can I run gitlab pipeline stage on a condition?
I know there is a way to run jobs in gitlab pipeline on a condition, but is there a way to do that with a stage? I have a stage which contains many jobs and I don't want to duplicate the code in each ...
0
votes
0
answers
18
views
Bitbucket Pipelines - Task 'appDistributionUploadStaging' not found in root project 'build'
I am trying to setup CI on Bitbucket Pipelines: what I want to do is assemble and upload the APK on Firebase AppDistribution (using com.google.firebase.appdistribution gradle plugin)
image: androidsdk/...
0
votes
1
answer
17
views
How to resolve the signtool location from Powershell
I'm setting up gitlab CI for windows that can be run on multiple windows machines, which means the EXACT path to signtool.exe may vary depending. CI starts in powershell where signtool is not in the $...
0
votes
1
answer
28
views
How to rename multiple PowerBi reports in Dev, QA, PROD during CICD using Azure DevOps Yaml Pipeline?
In my repository, I have 2 PowerBi reports (.pbix files) in a folder:
Report1.pbix
Report2.pbix
In my Yaml pipeline, I am creating an artifact named "reports" and coping all the reports ...
-2
votes
0
answers
11
views
AWS Lightsail container randomly fails to deploy, and with no changes succeeds the next time
I built a FastAPI backend that runs in a AWS Lightsail Container. I set up a CI pipeline. So everytime I commit code it triggers the job and the new version is deployed. The steps in the run are ...
0
votes
0
answers
15
views
Gitlab runner fails executin a valid shell command
I have a following GitLab CI/CD job defined in my gitlab-ci.yml:
image: docker:stable
stages:
- ...
...
build-dependencies-init:
stage: checks
tags:
- ...
needs:
- check-registry
...
0
votes
0
answers
13
views
Facing issue when trying to host CI website on a2hosting. my php version is 7.4 ,Ci version is 4
This is the error I am facing when trying to host CI website on a2hosting. my php version is 7.4 ,Ci version is 4:
'Code Igniter\Database\MySQL I\Connection' not found
in SYSTEMPATH/Database/...
0
votes
1
answer
30
views
Gitlab CI - Split deployment script from build script
Problem description
I have a .gitlab-ci.yaml like this:
stages:
- build
- deploy
before_script:
- docker login ...
build:
stage: build
tags:
- dind
script:
- docker pull $...
0
votes
1
answer
16
views
Run workflow on some pull request type that are only in a certain branch
im trying to run a workflow only on certains pull request types that are coming from a specific branch pattern.
So far I have this:
name: Create preview
on:
pull_request:
types: [labeled, ...
0
votes
1
answer
21
views
Jenkins checkout into a user defined directory
My project has 3 submodules in GitLab, which are all needed to build my project. I want to create independent pipelines in Jenkins to monitor and pull when a merge request is open.
If I create ...
-2
votes
0
answers
18
views
Jenkins Timeout with the opposite Results
Jenkins has a timeout feature in the declarative pipeline, that can be used to max the time a process inside a stage can take. If the process is still running after the timeout, an error is raised,
...
0
votes
1
answer
20
views
Google cloud credentials for deploying cloud run service in CI pipeline
I am attempting to deploy a Cloud Run service from source from a GitLab CI pipeline. I can deploy it manually, with my own credentials, but am struggling to give the right credentials to the CI ...
0
votes
1
answer
18
views
Providing full path to java in gitlab config
In my gitlab-ci.yml configuration I have the following snippet:
before_script:
- java -jar /home/gitlab-runner/tools/ciVersioner-1.0.jar $MAJOR $MINOR $CI_COMMIT_SHORT_SHA
script:
- mvn --...
0
votes
0
answers
29
views
Jenkins does not run docker container as agent
I am new to Jenkins. Sorry if my question is basic.
I am trying to use Jenkins inside a container using the following command:
docker run --name jenkins --privileged -u root -d -p 8080:8080 -p 50000:...
0
votes
0
answers
16
views
How to deploy war file on two instance of tomcat using gitlab CI/CD?
I have a spring boot web app project on gitlab, which is needed to be deployed on two remote instances of Tomcat servers using CI/CD. After quick research I have found this article. According to the ...
0
votes
2
answers
48
views
Azure devops - How to use same yml for multiple git repos
I use github for hosting my projects and have multiple projects in github. And I use Azure devops for CICD alone. I have a single project in Azure devops, where I create individual pipeline ...
0
votes
1
answer
17
views
Should I run pytest in the Dockerfile in CI?
I want to have a CI process for python application that basically does the following:
Run pytest to check that the application is working properly
If pytest succeed - package the application as a ...
-1
votes
0
answers
25
views
What qualifies as a CI/CD pipeline? [duplicate]
Sorry if this question seems really basic or strange, I am a student and new to devops concepts.
For my basic full stack web app projects, I've learned how to set up github actions to build my code, ...
0
votes
1
answer
38
views
Format SQL in YAML CI pipeline
I'm building a database solution using a YAML Continuous Integration pipeline and want to format the SQL scripts so that they're consistent.
i.e. so that:
INSERT INTO tblTest (t1,
...
0
votes
0
answers
12
views
What to do about git lfs files getting corrupted between CI runs?
We are using GitHub Actions on self-hosted runner machines which we manage remotely via AWS, and Git LFS to store images and other large files.
This usually works fine but sometimes local copies of ...
0
votes
0
answers
18
views
How to run gitlab-runner as a service?
After installing gitlab-runner, I have to do
gitlab-runner run
and leave it open. When I reboot, I have to run it again.
Is there a reason for this? I thought maybe start would start it as a service ...
0
votes
1
answer
23
views
How to cache a docker image in gitlab pipeline
I want to cache the /var/lib/docker folder on my gitlab pipeline, which I believe will make the docker not build everything again on the second run. It's a self compiled docker file.
build_linux:
...
0
votes
1
answer
61
views
Why it is impossible to replace tokens in Azure DevOps CI?
I have issue with replacing tokens using the plugin (Replace Tokens) in Azure Devops. I have json file in my project, but I don't want to store credentials there. Due to this I've created variables in ...
3
votes
2
answers
74
views
Create and configure Firebase project programmatically
I am building an automation process for my app, which includes creating several new Firebase projects. (After a lot of investigation, I am sure that several projects are needed, and that it cannot be ...
0
votes
0
answers
23
views
Run 2 gitlab jobs on the same VM
I have the following pipeline in gitlab:
stages: # List of stages for jobs, and their order of execution
- build
- test
- deploy
clone-submodule-job: # This job runs in the build ...
0
votes
1
answer
26
views
Check whether a build is necessary during GitLab CI
As part of CI on GitLab, we build a Docker image which is then pushed to the image repository and used for the following tasks. However, this happens every CI run, despite the fact most of the time it'...
0
votes
1
answer
25
views
How do I create an automated test for my python script?
I am fairly new to programming and currently working on a python script. It is supposed to gather all the files and directories that are given as paths inside the program and copy them to a new ...
0
votes
0
answers
12
views
Is there any CI/CD tool for flutter which allows me to pass dynamic Bundle ID and app icon
I want CI/CD tool for flutter which allows me to pass dynamic Bundle ID and app icon, I also want to change other params such as theme colors etc.
0
votes
0
answers
18
views
Convert multiple runs with github action if
Here is the part of my original code.
jobs:
publish:
steps:
- if: ${{github.ref_type == 'branch'}}
run: npm publish --tag ${{github.run_number}}
- if: ${{github.ref_type == '...
0
votes
0
answers
12
views
GitHub action workflow executed without being called in on statement
I have made a pull request on GitHub for a workflow that should be invoked in the following event:
on:
pull_request_review:
types: [submitted,edited]
Despite the fact that no pull request ...
1
vote
0
answers
55
views
Codemagic flutter build ipa --export-method ad-hoc error: requires a provisioning profile with the Push Notifications feature
I'm using Codemagic to set up a CI/CD but iOS build give me this error:
Building ad-hoc IPA... 3.2s
Encountered error while creating the IPA:
error: ...
0
votes
1
answer
39
views
Fetch version number in Nuget package step in Azure DevOps from csproj
Trying to set up a build pipeline where nugets built from pull-requests are suffixed with '-unstable'. However, I can't seem to get the version of the class-library project that is being built defined ...
0
votes
1
answer
17
views
How to use AngularFire without storing credentials in the git repo
I'm starting a new project with Angular & AngularFire.
According to what I've done previously and the documentation, I'm supposed to add the firebase credentials inside of /src/environments/...
0
votes
1
answer
35
views
How to get build name on Azure?
My goal is to get the build name from Azure YAML pipeline code.
For example, here it is #20220803.9 JBS-2413 Do not approve yet, this is an experiment of automating the tra...
I looked here but no ...
1
vote
0
answers
19
views
Flutter Fastlane Gitlab Build
I am new to Fastlane and want to build my apk through the Fastlane and Gitlab. I have been getting this error whenever I run the Fastlane command:
FAILURE: Build failed with an exception.
* Where:
...