Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Proj one qa pipelines#545

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
NimRegev merged 2 commits intoproject-onefromproj-one-qa-pipelines
Jan 23, 2023
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions_data/nav.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -383,10 +383,6 @@
url: "/deploy"
- title: Approval
url: "/approval"
- title: Conditional execution of steps
url: "/conditional-execution-of-steps"
- title: Post-step operations
url: "/post-step-operations"
- title: Triggers in pipelines
url: "/triggers"
sub-pages:
Expand All@@ -409,10 +405,14 @@
- title: Hooks in pipelines
url: "/hooks"
- title: Annotations in pipelines
url: "/annotations"
url: "/annotations"
- title: Conditional execution of steps
url: "/conditional-execution-of-steps"
- title: Post-step operations
url: "/post-step-operations"
- title: Grouping steps into stages
url: "/stages"
- title: Cachingfor pipelines
- title: Cachingin pipelines
url: "/pipeline-caching"
- title: Debugging pipelines
url: "/debugging-pipelines"
Expand Down
8 changes: 4 additions & 4 deletions_docs/pipelines/advanced-workflows.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -18,7 +18,7 @@ With the parallel execution mode, you can define complex pipelines with fan-in/o

>In Codefresh, parallel execution is unrelated to [stages]({{site.baseurl}}/docs/pipelines/stages/). Stages are only a way to visually organize your pipeline steps. The actual execution is independent from the visual layout in the logs view.

Before going any further make sure that you are familiar with the [basics of Codefresh pipelines]({{site.baseurl}}/docs/configure-ci-cd-pipeline/introduction-to-codefresh-pipelines/).
Before going any further make sure that you are familiar with the [basics of Codefresh pipelines]({{site.baseurl}}/docs/pipelines/introduction-to-codefresh-pipelines/).

Codefresh offers two modes of execution:

Expand DownExpand Up@@ -156,8 +156,8 @@ The pipeline view for this yaml file is the following.
{% include
image.html
lightbox="true"
file="/images/codefresh-yaml/parallel-push.png"
url="/images/codefresh-yaml/parallel-push.png"
file="/images/pipeline/codefresh-yaml/parallel-push.png"
url="/images/pipeline/codefresh-yaml/parallel-push.png"
alt="Parallel Docker push"
caption="Parallel Docker push"
max-width="80%"
Expand DownExpand Up@@ -671,7 +671,7 @@ If you run the pipeline you will see that Codefresh automatically understands th
Also notice the `fail_fast: false` line in the unit tests. By default, if *any* steps fails in a pipeline the whole pipeline is marked as a failure. With the `fail_fast` directive we can allow the pipeline to continue so that other steps that depend on the failed step can still run even.


###Multipl step dependencies
###Multiple step dependencies

A pipeline step can also depend on multiple other steps.

Expand Down
21 changes: 10 additions & 11 deletions_docs/pipelines/annotations.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
---
title: "Annotations inCIpipelines"
title: "Annotations in pipelines"
description: "Mark your builds and projects with extra annotations"
group: pipelines
redirect_from:
Expand All@@ -16,15 +16,15 @@ Currently Codefresh supports extra annotations for:
* Builds
* Docker images

You can view/edit annotations using the [Codefresh CLI](https://codefresh-io.github.io/cli/annotations/) or directly in the Codefresh Web UI.
You can view/edit annotations using the [Codefresh CLI](https://codefresh-io.github.io/cli/annotations/){:target="\_blank"} or directly in the Codefresh Web UI.

>Notice that the syntax shown in this page is deprecated but still supported. For the new syntax
see [hooks]({{site.baseurl}}/docs/pipelines/hooks/).
>Notice that the syntax shown in this page is deprecated but still supported. For the new syntax,
see [hooks in pipelines]({{site.baseurl}}/docs/pipelines/hooks/).


## Adding annotations

In the most basic scenario you can use the [post operations]({{site.baseurl}}/docs/pipelines/post-step-operations/) of any Codefresh [step]({{site.baseurl}}/docs/pipelines/steps/) to add annotations:
In the most basic scenario, you can use the [post-step operations]({{site.baseurl}}/docs/pipelines/post-step-operations/) of any Codefresh [step]({{site.baseurl}}/docs/pipelines/steps/) to add annotations:

`codefresh.yml`
{% highlight yaml %}
Expand DownExpand Up@@ -163,7 +163,7 @@ Click *Save* to apply your changes.

## Complex annotation values

Apart from scalar values, you can also store more complex expressions in annotations. You have access to all [Codefresh variables]({{site.baseurl}}/docs/pipelines/variables/), text files from the build and even evaluations from the [expression syntax]({{site.baseurl}}/docs/pipelines/condition-expression-syntax/).
Apart from scalar values, you can also store more complex expressions in annotations. You have access to all [Codefresh variables]({{site.baseurl}}/docs/pipelines/variables/), text files from the build and even evaluations from the [expression syntax]({{site.baseurl}}/docs/pipelines/conditional-execution-of-steps/#condition-expression-syntax).

`codefresh.yml`
{% highlight yaml %}
Expand DownExpand Up@@ -196,7 +196,7 @@ steps:
{% endraw %}
{% endhighlight %}

>Notice that this pipeline is using dynamic git repository variables, so it must be linked to a least one [git trigger]({{site.baseurl}}/docs/pipelines/triggers/git-triggers/) in order to work.
>Notice that this pipeline is using dynamic git repository variables, so it must be linked to a least one [Git trigger]({{site.baseurl}}/docs/pipelines/triggers/git-triggers/) in order to work.

The last two annotations add the text of a file as a value. You can define an absolute or relative path. No processing is done on the file before being stored. If a file is not found, the annotation will still be added verbatim.
We suggest you only store small text files in this manner as annotations values.
Expand DownExpand Up@@ -297,7 +297,6 @@ You can also define `entity_type` as `image` and don't enter any `entity_id`. In
Note that this syntax is optional. You can still define annotations for a build/image or any other entity using the post operations of any step by mentioning explicitly the target id and type.

## Related articles
[Image annotations]({{site.baseurl}}/docs/docker-registries/metadata-annotations/)
[Post-step operations]({{site.baseurl}}/docs/pipelines/post-step-operations/)
[Creating CI pipelines]({{site.baseurl}}/docs/pipelines/pipelines/)
[Hooks in CI pipelines]({{site.baseurl}}/docs/pipelines/hooks/)
[Image annotations]({{site.baseurl}}/docs/pipelines/docker-image-metadata/)
[Creating pipelines]({{site.baseurl}}/docs/pipelines/pipelines/)
[Hooks in pipelines]({{site.baseurl}}/docs/pipelines/hooks/)
108 changes: 0 additions & 108 deletions_docs/pipelines/condition-expression-syntax.md
View file
Open in desktop

This file was deleted.

14 changes: 7 additions & 7 deletions_docs/pipelines/conditional-execution-of-steps.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,13 +2,14 @@
title: "Conditional execution of steps"
description: "Skip specific pipeline steps according to one or more conditions"
group: pipelines
sub_group: steps
redirect_from:
- /docs/codefresh-yaml/conditional-execution-of-steps/
- /docs/codefresh-yaml/condition-expression-syntax/
- /docs/conditional-execution-of-steps/

toc: true
---
For each step in a `codefresh.yml` file, you can define a set of conditions which need to be satisfied in order to execute the step.(An introduction to the `codefresh.yml` file can be found [here]({{site.baseurl}}/docs/codefresh-yaml/what-is-the-codefresh-yaml/).)
For each step in a `codefresh.yml` file, you can define a set of conditions which need to be satisfied in order to execute the step.For details on the `codefresh.yml` file, see [Pipeline definitions YAML]({{site.baseurl}}/docs/pipelines/what-is-the-codefresh-yaml/).)

There are currently two main methods to define conditions:
* Branch conditions
Expand DownExpand Up@@ -67,7 +68,7 @@ build-step:
{% endhighlight %}


>We use [JavaScript regular expressions](https://developer.mozilla.org/en/docs/Web/JavaScript/Guide/Regular_Expressions) for the syntax in branch conditions.
>We use [JavaScript regular expressions](https://developer.mozilla.org/en/docs/Web/JavaScript/Guide/Regular_Expressions){:target="\_blank"} for the syntax in branch conditions.


## Condition expressions
Expand DownExpand Up@@ -142,8 +143,7 @@ A condition expression is a basic expression that is evaluated to true/false (to

#### Variables

You can use the User Provided variables as explained in [Variables]({{site.baseurl}}/docs/pipelines/variables/), including the [variables
exposed by each individual pipeline step]({{site.baseurl}}/docs/pipelines/variables/#step-variables).
You can use the user-defined variables, including the variables exposed by each individual pipeline step. See [Variables in pipelines]({{site.baseurl}}/docs/pipelines/variables/).

#### Unary Operators

Expand DownExpand Up@@ -244,6 +244,6 @@ Try running the pipeline above and see how it behaves when a variable called `MY

## Related articles
[Codefresh YAML for pipeline definitions]({{site.baseurl}}/docs/pipelines/what-is-the-codefresh-yaml/)
[Variables]({{site.baseurl}}/docs/pipelines/variables/)
[Variables in pipelines]({{site.baseurl}}/docs/pipelines/variables/)
[Pull Requests and Branches]({{site.baseurl}}/docs/ci-cd-guides/pull-request-branches/)
[Pipeline/Step hooks]({{site.baseurl}}/docs/pipelines/hooks/)
[Hooks in pipelines]({{site.baseurl}}/docs/pipelines/hooks/)
4 changes: 2 additions & 2 deletions_docs/pipelines/configuration/build-status.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -52,8 +52,8 @@ Click on it and you will get a new dialog where you can select
{% include
image.html
lightbox="true"
file="/images/a0c4aed-codefresh_badges_2.png"
url="/images/a0c4aed-codefresh_badges_2.png"
file="/images/pipeline/badges/codefresh_badges.png"
url="/images/pipeline/badges/codefresh_badges.png"
alt="Codefresh badges syntax"
caption="Codefresh badges syntax"
max-width="70%"
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp