1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-11-24 08:02:18 +02:00
woodpecker/docs/versioned_docs
manuelluis 9c684b7a22
Add option to set the local repository path to the cli command exec. (#3524)
The cli command exec not handle in a coherent way the repository path
when a directory or filename is given for the pipeline.

` woodpecker-cli exec [command options] [path/to/.woodpecker.yaml]`

If the path to the pipeline is a file in the `.woodpecker` directory,
for example: `.woodpecker/pipeline.yaml`,
the repository path will be: `.woodpecker`

If the path to the pipeline yaml is a directory with more than one
level, for example `ci/woodpecker/`,
the repository path will be:  `ci`

In order not to break the old behavior we added a new option to put the
root directory of the repository:
~~~
woodpecker-cli exec --local --repo-path . --pipeline-event manual
.woodpecker/build.yml
~~~
2024-03-21 00:19:48 +01:00
..
version-1.0 Bump follow-redirects and fix broken anchors (#3488) 2024-03-15 11:56:31 +01:00
version-2.0 Bump follow-redirects and fix broken anchors (#3488) 2024-03-15 11:56:31 +01:00
version-2.1 Bump follow-redirects and fix broken anchors (#3488) 2024-03-15 11:56:31 +01:00
version-2.2 Bump follow-redirects and fix broken anchors (#3488) 2024-03-15 11:56:31 +01:00
version-2.3 Bump follow-redirects and fix broken anchors (#3488) 2024-03-15 11:56:31 +01:00
version-2.4 Add option to set the local repository path to the cli command exec. (#3524) 2024-03-21 00:19:48 +01:00