Skip to main content
3 votes
Accepted

Setting up gitlab phpstan pipeline

The problem is that an official Docker image of phpstan uses ENTRYPOINT ["phpstan"] and the Gitlab runner call the image with "sh -c" command. You can override the default entry ...
jakub.frajt's user avatar
3 votes
Accepted

Gitlab CI: change pipeline definition dynamically

The reason you can't use dotenv variables in the rules clause(s) is that rules are evaluated before the pipeline even starts executing. If you have a rules clause like rules: - if: $CI_COMMIT_TAG ===...
Adam Marshall's user avatar
2 votes
Accepted

How do I fail a gitlab pipeline job?

All you need to do is to configure the mvn dependency plugin to fail on found vulnerabilities. You can do that with the failBuildOnCVSS config flag. E.g. with severity 8 from docs <project> ....
Chris's user avatar
  • 171
2 votes

Jenkins pipeline : How can I display a downstream / upstream relationship?

Yet Another Build Visualizer shows up- und downstream builds for pipeline jobs, too. A Jenkins plugin that allows visualization of the build flow of upstream and downstream builds in Jenkins.
RoBeaToZ's user avatar
  • 121
2 votes

Jenkins pipeline : How can I display a downstream / upstream relationship?

The upstream/downstream relationship is for Freestyle jobs only and does not work for Pipeline. This is because the internal (Java) Freestyle job API that the upstream/downstream feature uses to ...
jayhendren's user avatar
  • 2,952
2 votes

How to set up WordPress CI/CD pipeline

It has been a while since I have run a few Wordpress based sites. The database stores some of the content of the site. The file system stores media that is uploaded into the site. More significantly ...
simbo1905's user avatar
  • 1,172
1 vote

how to create dynamic stages in jenkins pipeline

This was already asked and answered over on StackOverflow. TL;DR: you must use Scripted Pipeline; Declarative does not support dynamic stages. Here is a copy-paste of the top answer: Use the ...
jayhendren's user avatar
  • 2,952
1 vote
Accepted

Restrict access to trigger the GitLab pipeline job

I had a requirement for a job to run manually and only select users should run the job. Below is the rule: - if: $CI_PIPELINE_SOURCE == "web" && $GITLAB_USER_LOGIN == "<...
Arslan Zaidi's user avatar
1 vote

GitLab CI: How to properly push file to a repo using ci file?

From https://docs.gitlab.com/ee/ci/jobs/ci_job_token.html: You can’t use a job token to push to a repository, but issue 389060 proposes to change this behavior. Project/group scoped access tokens ...
Gabor Szabad's user avatar
1 vote

GitLab CI: How to properly push file to a repo using ci file?

Are you attempting to push to the same git repo that the CI is running against? If so, GitLab CI jobs do not have permission to write to their respective repo, at least not by default. If you really ...
Laurence Gonsalves's user avatar
1 vote

Best practice multiple pipelines into production

It's pretty common to have a difference at the code level, for example building off a branch of the code. However, the build and deployment pipeline ought to be the same. The issue around what code ...
Fenton's user avatar
  • 323
1 vote
Accepted

How widespread, used is CWL, common workflow language?

This question is almost certainly going to be closed "off-topic", but since I have some experience with communities using CWL in the past, I'll provide my bit. First, a correction to your ...
Bruce Becker's user avatar
  • 3,583
1 vote

What are ways to structure a webhook-triggered job that triggers a human-triggerable job?

Make B as a Pipeline job and give it some build parameters. Humans will be able to trigger this build with whatever parameters they want using the "Build With Parameters" button in the web ...
jayhendren's user avatar
  • 2,952
1 vote
Accepted

Why are variables with fixed values not visible in Jenkins Pipeline stage?

I've spent a bit of time playing "follow the bouncing ball" through the Generic Webhook Trigger Plugin source code, and it would seem that it is because those variables being displayed do ...
Kyanar's user avatar
  • 150
1 vote

Azure Pipeline Parallelism option

Public project Up to 10 free Microsoft-hosted parallel jobs that can run for up to 360 minutes (6 hours) each time No overall time limit per month Private project One free job that can run for up to ...
qBasicBoy's user avatar
  • 101
1 vote
Accepted

java.lang.UnsupportedOperationException: no known implementation of class jenkins.tasks.SimpleBuildWrapper is named BuildUser in jenkins

Have you installed the Build User Vars Plugin? This plugin provides the "BuildUser" class.
Kyanar's user avatar
  • 150
1 vote

How to test pipeline changes in Azure?

Not sure if this helps you? but if you edit it from the portal you can select the branch you are working on and there is a validate option I also add a parameter to my pipelines, parameters: - ...
qBasicBoy's user avatar
  • 101

Only top scored, non community-wiki answers of a minimum length are eligible