All Questions
15,854 questions
0
votes
1
answer
43
views
Replace value inplace while saving the old value
I'm looking to use yq to replace a yaml file values while still retaining the old value.
Essentially putting base/1.0.0/ after base.routes.paths ~/ and what comes after. The added value will be the ...
-2
votes
0
answers
42
views
VS Code: Is the yaml red hat plugin not working correctly with helm? [closed]
I'm using VS Code to work with Kubernetes and Helm YAML files. I have the Red Hat plugin installed. Everything was fine until today. I always had simple files, but today I opened a file with if/else/...
Advice
0
votes
1
replies
28
views
How do I convert a trx file into html in azure test pipeline
So how do I convert a TRX file into html in azure test pipeline.
We have a selection of pipelines which run tests on a nightly basis. The tests are designed in Visual Studio with C#, Playwright, ...
0
votes
0
answers
36
views
liferay javascript client extension not working
I created a JS client-extension for Liferay 7.4 (U60). Everything works fine on my local environment, but after deploying to our Dev environment through a Jenkins pipeline, I’m getting 404 Not Found ...
0
votes
0
answers
38
views
Error in Pod Update while building in Azure DevOps Pipeline for React Native
I'm setting up an Azure pipeline for a React Native project, but I'm running into an error during the Pod update step. Does anyone know what changes I might need to make in the Podfile, the YAML ...
-2
votes
0
answers
74
views
Creating a stack in portainer with docker compose in R
I would need how to create the yaml to deploy the stack making sure it has alll these libraries and that it uses these ports
Libraries:
1.1- openxlsx
1.2- xml2
1.3- rdflib
1.4- jsonld
1.5- jsonlite
1....
1
vote
1
answer
74
views
Quarto trying to render script files
I'm putting together an academic website with a publications section. I've written a script that will turn a bibtex file into article-by-article quarto and bibtex files that then use a custom template....
0
votes
1
answer
88
views
Interpreting YAML parameters in ROS2 as dict
I'm using ROS2 for a project. I'm stuck in interpreting the following parameter:
my_node:
category_sector_mapping:
Plastic: 0
Paper: 1
Glass: 2
Aluminium: 2
Organic: 2
...
0
votes
1
answer
72
views
Azure Devops YAML pipeline matrix strategy job to call conditional dynamic template
I want to execute different dynamic templates according to a matrix strategy job
The pipeline code below starts 2 jobs as expected, but I cannot call template 1 from Job1 and template 2 from Job2
...
0
votes
1
answer
124
views
Spring 3.5.x gives 'name' must not be null after upgrading from Spring 3.4.x
I got this shortened yaml configuration file:
apiconfiguration:
apiList:
-
queryParameters:
- something
This is my Java class:
@Getter
@Setter
public class ApiConfig {
...
1
vote
1
answer
58
views
How to properly cache Nuget files across Pipeline stages in ADO
I'm trying to cache all the Nuget packages for my .NET Solution in the first stage of my job, and then restore that cache in subsequent stages. I have had a lot of trouble finding reliable info on ...
-1
votes
1
answer
50
views
Github composite outputs "suddenly" not propagating to the next job
I'm doing Infrastructure as Code for a project and it involves setting up the Azure infrastructure via Github workflow.
What i do in my composite is:
Create a resource group
Build bicep files
Run &...
2
votes
1
answer
77
views
Load loki url from yaml
I have my logback-spring.xml as follows:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<springProperty scope="context" name="...
-1
votes
1
answer
48
views
How to correctly use retry_delay or retry_delay_sec in Airflow YAML DAG?
I'm currently working with Apache Airflow and trying to configure retries for my DAG tasks using the retry_delay (or retry_delay_sec) parameter in a YAML-based DAG definition.
However, I'm running ...
0
votes
0
answers
45
views
Yaml file with variable
I have a couple of micro services built in Spring Boot, and I'm using Spring Clound Config Server,
in my application.yml, the common for all micro services, I have this variables:
mem-config:
tipo-...
1
vote
1
answer
104
views
Retrieve schema name created with databricks asset bundles
I´ve created a schema in DAB with this code in my yml file.
resources:
schemas:
my_schema:
name: my_schema_name
catalog_name: my_catalog
The schema is created ...
0
votes
0
answers
38
views
Can't manually sign IPA for deployment to Firebase on Azure DevOps
I attempted to generate an IPA build via YAML in Azure DevOps with limited success.
I have the generated .p12 cert and provisioning profile done - provisioning profile is ad-hoc
Below is the error I ...
1
vote
1
answer
103
views
How to retrieve a specific variable from Azure Devops library dynamically
I have a simple yaml pipeline that calls a template analyze-and-deploy.yml.
I concatenate ${{ parameters.Environment }}_USERNAME to create a username parameter dynamically and pass it when calling ...
0
votes
1
answer
91
views
Why am I getting Event validation failed when defining query params in a Godspeed HTTP event?
I’m creating a simple HTTP GET event in the Godspeed framework. My goal is to accept a query parameter called name and return a response. However, when I define the event YAML with type: string ...
0
votes
0
answers
88
views
Avoid encoding emojis when using yq --prettyPrint
When I convert my JSON file to YAML, i want any unicode chars to be part of the content and not escaped with backslash and quotes. Example: This is my file.json
What can I do in order to make YQ not ...
1
vote
1
answer
86
views
In Ansible YAML, how do I pass different variables to an include_tasks to make it reusable?
I have a workflow where I download a file, do some stuff to it, upload it, and then download it again to verify that the changes took place. I want my download logic to be in a reusable YAML file that ...
0
votes
0
answers
48
views
Azure Pipeline Stages to Run show "Unable to load the pipeline's stages."
I checked some netizens' errors.
Currently I've tried change Triggers>YAML>Insert something to "Default agent pool for YAML"
But seems "Unable to load the pipeline's stages" ...
2
votes
0
answers
69
views
How can I load a map of objects from YAML using Micronaut's ConfigurationProperties?
I'm using the Micronaut framework, and using ConfigurationProperties to load application config into an injectable bean. This has worked well so far, but I'm now stuck on loading nested objects into a ...
0
votes
0
answers
31
views
Why does the IntelliJ YAML inspection show errors for variable outputs/uses in GitHub workflow?
IntelliJ 2024.3.3 (Ultimate Edition) shows numerous errors for yaml code in a GitHub workflow such as this (excerpt):
jobs:
setup:
runs-on: 'ubuntu-latest'
name: Setup
env:
...
0
votes
2
answers
73
views
Extract and merge object contents from two different trees
I have the following structure in yaml:
root1:
foo:
prop1: val1
bar:
prop1: val2
root2:
foo:
prop2: val3
bar:
prop2: val4
I wish to split the tree in multiple docs along the ...
2
votes
1
answer
91
views
How to change a specific YAML value for only certain YAML objects with yq
Let's assume the following YAML file:
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: Bucket
metadata:
name: kratix
namespace: flux-system
spec:
interval: 10s
provider: generic
...
0
votes
1
answer
43
views
Azure Pipelines Dynamic Parameter Generation Based on REST API Call
I am attempting to use Azure Pipelines to deploy multiple copies of the same code base with variations in the configuration for each instance. Each one is to be deployed to a separate domain ...
0
votes
0
answers
30
views
Apply a method to a class defined in yaml file (hyperpyyaml)
I want to use the class defined in yaml file to get a method associated with it.
Intuitively, it's something like -
!apply: !ref <class.method>
But since input to apply is a callable string, ...
1
vote
1
answer
101
views
Spring boot ConfigurationProperties map yaml reference anchors to the same object instances
I have a class APIProperties that is being configured by a yaml file via Spring boot's @ConfigurationProperties decorator:
ex:
@Data
@ConfigurationProperties(prefix = "api")
public class ...
0
votes
0
answers
55
views
How to set pipeline variables based on another pipeline variable whose value is assigned using Library variable?
I am having difficulty in achieving a requirement. I need to determine the Agent pool based on Build.Reason. If the reason is PullRequest, I need to assign the value of agent pool using value of a ...
0
votes
0
answers
59
views
How to dynamically change the color of a Home Assistant tank based on an input_select using card_mod/level_color?
I am trying to dynamically change the background color of a tank in my Home Assistant dashboard based on a manually selected color via an input_select.
The input_select is defined in configuration....
0
votes
0
answers
94
views
Gitlab CI: Import GPG key and get reprepro to sign with it
I have a GitLab pipeline in which I need to import a GPG key from a variable and sign with it. Signing fails because the key is not trusted.
YAML attached. Some remarks:
Masking variables does not ...
1
vote
2
answers
381
views
How do I auto-create an Airflow admin user in Airflow 3.x with Docker Compose?
I'm new to Airflow and trying to automatically create an admin user when initializing Apache Airflow 3.x using Docker Compose, but it's not being created, and I can't log in.
I’ve tried using the ...
1
vote
2
answers
88
views
using mikefarah/yq find the Nested keys with parent
need to get all the nested keys from a yaml file using mikefarah/yq(installed v4.25.1)
tried the below 2
this gives only the parent level keys not the child keys under it
yq eval 'keys' "...
2
votes
1
answer
99
views
Ruamel.yaml adds id001 aliases?
I'm using ruamel.yaml to add an entry to a dictionary:
import ruamel.yaml
yaml = ruamel.yaml.YAML()
yaml.preserve_quotes = True
yaml.indent(mapping=2, sequence=4, offset=2)
raw = """---...
4
votes
1
answer
133
views
How can you set proxyName and proxyPort values in Spring Boot Application YAML for embedded tomcat instance?
In the past, I have had to set the proxyName and proxyPort (along with scheme and secure) so that when Okta Saml SSO assertions are made/validated the correct domain values are used (since my app is ...
2
votes
0
answers
201
views
How to Define Reusable Job Cluster Configurations in Databricks Asset Bundles Across Separate YAML Files?
Problem
I’m trying to create reusable job cluster configurations in Databricks Asset Bundles (DAB) that can be referenced across multiple jobs defined in separate YAML files. I want to avoid ...
1
vote
0
answers
72
views
Kotlin serialize simple class with explicit Serial Name
I've tried to use kotlinx.serialization with the third party Yaml plugin from @charleskorn.
In the past I already did something with Python using pyyaml, where I explicitly set a custom yaml_tag for ...
0
votes
0
answers
54
views
Disable automatic type conversion when loading with readYaml in Jenkins pipeline
I am loading a yaml file using readYaml inside a declarative Jenkins pipeline. My file contains values that are of format YYYY-MM-DD, for example 2024-10-23. However, after loading, these values ...
0
votes
0
answers
38
views
OAS Generator creates classes even for referenced schemas
I have two yml files
Common.yml and application.yml
Both under same folder
I have certain schemas like sortOrder that are defined in common schema
And using $ref it is referred in application.yaml
...
0
votes
0
answers
91
views
how to finish Playwright Run tests as it continuously loading in case of failed test case in pipeline 'http://localhost:9323. Press Ctrl+C to quit
When I execute test cases which will result pass test cases azure pipeline successfully run and show results under a min.
when I enabled failed test cases azure pipeline keeps on loading- until I ...
-1
votes
1
answer
65
views
GitLab CI YAML fails to validate. Why?
I write a GitLab CI YAML.
This:
test:
script:
- echo 'hello: world'
Fails with the error: "This GitLab CI configuration is invalid: jobs:test:script config should be a string or a nested ...
-2
votes
1
answer
153
views
Ansible task to YAML lint a templated file
I have the following task which takes a list of {config}.yml.j2 files:
- name: Copy central application configuration file into config folder
ansible.builtin.template:
src: "config/{{ item }...
0
votes
1
answer
109
views
How to update the values for all keys matching a given pattern using yq?
I have a yaml file looks like
part1:
name: tom
some_field: true
part2:
name: jerry
other_field: true
and I would like to change the value of all keys that end with field into false, that is, ...
2
votes
1
answer
406
views
How to use yaml_file parameter for pydantic settings
Here is my example code:
from pathlib import Path
from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
model_config = SettingsConfigDict(
yaml_file=...
0
votes
1
answer
77
views
Prevent ruamel.yaml from touching unchanged lines when round-trip dumping YAML
I’m automating small edits to YAML files (and opening PRs), but I need only the lines I intentionally changed to appear in the diff—yet ruamel.yaml still rewrites lines I never touched. For example, ...
0
votes
2
answers
122
views
Azure DevOps pipeline fails during default checkout: fatal: ambiguous argument 'HEAD' and git clean/reset errors
I'm running an Azure DevOps pipeline using a self-hosted agent. The pipeline is defined in YAML and is triggered from a repository called TestRepo. However, the pipeline fails during the default ...
1
vote
2
answers
51
views
GitHub Actions Workflow Failing: Artifacts Array Returns [] During Firebase Deployment
I’m facing an issue with my GitHub Actions CI/CD setup for deploying a web app to Firebase Hosting. I’ve set up three workflows:
Pull Request Workflow: Validates code on PR creation.
Build Workflow: ...
0
votes
0
answers
44
views
Artifacts not found while deploying to aws - Bitbucket Pipeline
I'm trying to deploy an application in AWS using parallel for handling 2 application in one service, if I'm using in custom pipeline, it's working fine, but when I tried with branches like dev/sit, I ...
0
votes
0
answers
158
views
Ansible Playbook error with netcommon bad escape
I have a module failure with a very simple playbook, I always have this error of bas escape
I can't send any config with the module
I'm trying to send it on 2 Huawei CE6885-48YS8CQ and I'm on Ubuntu ...