You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _docs/codefresh-yaml/steps/freestyle.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,7 +108,7 @@ step_name:
108
108
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)
109
109
so the source code is already checked out and available to all pipeline steps.
110
110
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/):**
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/):**
125
127
126
128
`codefresh.yml`
127
129
{% highlight yaml %}
@@ -135,7 +137,7 @@ steps:
135
137
-npm run test
136
138
{% endhighlight %}
137
139
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/):**
139
141
140
142
`codefresh.yml`
141
143
{% highlight yaml %}
@@ -149,7 +151,7 @@ steps:
149
151
-go build
150
152
{% endhighlight %}
151
153
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):
153
155
154
156
`codefresh.yml`
155
157
{% highlight yaml %}
@@ -220,7 +222,7 @@ Here the `MyAppDockerImage` step is creating a custom docker image. That image i
220
222
This pattern works very well for cases where testing tools are already part of the image (usually with dynamic languages).
221
223
In other case you can have a second Dockerfile in your application that is designed explicitly to hold all your testing tools.
222
224
223
-
## Entry point
225
+
## Entry point
224
226
225
227
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:
226
228
@@ -245,9 +247,9 @@ image: mwendler/cowsay
245
247
246
248
## Commands
247
249
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.
249
251
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.
251
253
252
254
> 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).