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

Commit063529e

Browse files
Changes to freestyle step
1 parent7836b2f commit063529e

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

‎_docs/codefresh-yaml/steps/freestyle.md‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ step_name:
108108
Here are some full pipelines with freestyle steps. Notice that in all cases the pipelines are connected to [git repositories]({{site.baseurl}}/docs/configure-ci-cd-pipeline/pipelines/#pipeline-creation-modes)
109109
so the source code is already checked out and available to all pipeline steps.
110110

111-
Creating a [JAR file]({{site.baseurl}}/docs/learn-by-example/java/spring-boot-2/):
111+
**Creating a [JAR file]({{site.baseurl}}/docs/learn-by-example/java/spring-boot-2/):**
112112

113113
`codefresh.yml`
114114
{% highlight yaml %}
@@ -121,7 +121,9 @@ steps:
121121
-mvn -Dmaven.repo.local=/codefresh/volume/m2_repository package
122122
{% endhighlight %}
123123

124-
Running unit tests in [Node.JS]({{site.baseurl}}/docs/learn-by-example/nodejs/):
124+
Note how we [cache Maven dependencies]({{site.baseurl}}/docs/learn-by-example/java/spring-boot-2/#caching-the-maven-dependencies) using the internal Codefresh Volume.
125+
126+
**Running unit tests in [Node.JS]({{site.baseurl}}/docs/learn-by-example/nodejs/):**
125127

126128
`codefresh.yml`
127129
{% highlight yaml %}
@@ -135,7 +137,7 @@ steps:
135137
-npm run test
136138
{% endhighlight %}
137139

138-
Packaging a [GO application]({{site.baseurl}}/docs/learn-by-example/golang/golang-hello-world/):
140+
**Packaging a [GO application]({{site.baseurl}}/docs/learn-by-example/golang/golang-hello-world/):**
139141

140142
`codefresh.yml`
141143
{% highlight yaml %}
@@ -149,7 +151,7 @@ steps:
149151
-go build
150152
{% endhighlight %}
151153

152-
Performing a [blue/green deployment](https://github.com/codefresh-io/k8s-blue-green-deployment):
154+
####Performing a [blue/green deployment](https://github.com/codefresh-io/k8s-blue-green-deployment):
153155

154156
`codefresh.yml`
155157
{% highlight yaml %}
@@ -220,7 +222,7 @@ Here the `MyAppDockerImage` step is creating a custom docker image. That image i
220222
This pattern works very well for cases where testing tools are already part of the image (usually with dynamic languages).
221223
In other case you can have a second Dockerfile in your application that is designed explicitly to hold all your testing tools.
222224

223-
## Entry point
225+
## Entry point
224226

225227
When using the original container entry point, you can use the `cmd` field to specify additional arguments to be used with the entry point. This can be a string, or an array of strings. For example:
226228

@@ -245,9 +247,9 @@ image: mwendler/cowsay
245247

246248
## Commands
247249

248-
When you use the `commands` field, it will override the container original `entrypoint` and will execute the commands in a shell inside the container.
250+
When you use the `commands` field, it will override the container original `entry_point` and will execute the commands in a shell inside the container.
249251
The provided commands are concatenated into a single command using the shell's `;` operator, and are run using the default shell `/bin/sh` as an entry point.
250-
Additional settings that are set only when using commands are `set -e`, and the `cf_export` utility.
252+
Additional settings that are set only when using commands are `set -e`, and the[`cf_export`]({{site.baseurl}}/docs/codefresh-yaml/variables/#using-cf_export-command) utility.
251253

252254
> Using complex commands in the freestyle step requires use of [YAML block scalars](http://stackoverflow.com/questions/3790454/in-yaml-how-do-i-break-a-string-over-multiple-lines).
253255

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp