Commit Graph

746 Commits

Author SHA1 Message Date
Simone Gotti 973cfe8770 configstore: implement project group move 2019-10-01 12:03:57 +02:00
Simone Gotti b6d038d5da
Merge pull request #129 from sgotti/configstore_disable_root_projectgroup_deletion
configstore: disable root project group deletion
2019-10-01 12:01:24 +02:00
Simone Gotti 85b8888f76 cmd: add project group delete command 2019-10-01 10:33:56 +02:00
Simone Gotti e2a0fedfb8 configstore: disable root project group deletion 2019-10-01 10:26:17 +02:00
Simone Gotti d76b77b2b2
Merge pull request #123 from sgotti/cmd_project_update
cmd: add project update command
2019-09-30 16:04:17 +02:00
Simone Gotti ddfc5f41c0 cmd: add project update command 2019-09-30 13:30:13 +02:00
Simone Gotti 9b28031ccd
Merge pull request #127 from sgotti/tests_wait_gitea_ready
tests: wait gitea ready
2019-09-30 12:00:12 +02:00
Simone Gotti 4b5bd93c0a tests: wait gitea ready
* retry gitea create admin user command until ready
* wait for gitea api to be ready
2019-09-30 10:49:14 +02:00
Simone Gotti c3ee99e2df
Merge pull request #122 from sgotti/gateway_project_update_add_parentref
gateway: add parentRef field to project update api
2019-09-27 22:47:37 +02:00
Simone Gotti 8b9464486d gateway: add parentRef field to project update api
and make all the request fields optional
2019-09-27 17:10:04 +02:00
Simone Gotti 7e6a143e40
Merge pull request #126 from camandel/fix_version
cmd: fix version output
2019-09-27 16:55:36 +02:00
Carlo Mandelli d775bcac60 cmd: fix version output 2019-09-27 15:34:24 +02:00
Simone Gotti 1244973c55
Merge pull request #125 from sgotti/add_github_issue_template
Add github issue templates
2019-09-27 11:56:16 +02:00
Simone Gotti 2c095e084c Add github issue templates
[ci skip]
2019-09-27 11:44:50 +02:00
Simone Gotti 52fa406eea
Merge pull request #121 from sgotti/configstore_project_move
configstore: implement project move
2019-09-27 11:38:59 +02:00
Simone Gotti fe9e3e8317 configstore: implement project move 2019-09-27 11:07:49 +02:00
Simone Gotti 6daf830d85
Merge pull request #124 from camandel/fix_typos_online_help
cmd: fix typos in online help
2019-09-27 09:53:56 +02:00
Carlo Mandelli 8df96757e3 fix typos in online help 2019-09-27 08:22:41 +02:00
Simone Gotti 313936115c
Merge pull request #118 from camandel/add_variable_secret_list
cli: add secret/variable list subcommand
2019-09-26 10:21:56 +02:00
Carlo Mandelli 229b4c511d Add variable/secret list subcommand 2019-09-26 09:33:24 +02:00
Simone Gotti 2d6fd96da0
Merge pull request #120 from camandel/clone_options
config: add clone options
2019-09-25 10:59:25 +02:00
Carlo Mandelli cd8175c156 add clone options 2019-09-25 09:29:39 +02:00
Simone Gotti 0172a0aa7f
Merge pull request #119 from sgotti/gateway_api_getsecrets_implement_removeoverridden
gateway: api implement get secrets removeoverridden
2019-09-20 18:46:45 +02:00
Simone Gotti f5c0e91f39 gateway: api implement get secrets removeoverridden
Implement missing removeoverridden option for get secrets.
2019-09-20 15:39:21 +02:00
Simone Gotti c3ca892f00
Merge pull request #90 from camandel/ci_skip
skip run with special commit
2019-09-20 14:33:27 +02:00
Carlo Mandelli 436aa8f1de skip run with special commit 2019-09-18 11:53:22 +02:00
Simone Gotti eddb62b6e2
Merge pull request #117 from sgotti/executor_add_missing_mutex_unlock
executor: add missing mutex unlock
2019-09-18 11:14:26 +02:00
Simone Gotti 714da3ffe3 executor: add missing mutex unlock
Add missing mutex unlock that will cause deadlocks.
2019-09-18 09:49:38 +02:00
Simone Gotti 9f1a3e405d
Merge pull request #116 from sgotti/gateway_api_run_return_more_step_data
gateway: run api return more step data
2019-09-17 22:59:36 +02:00
Simone Gotti 9cfb21d365 gateway: run api return more step data
For every step return the step type.

For a run step also return the shell and exit status.
2019-09-17 17:43:48 +02:00
Simone Gotti 99d137d9eb
Merge pull request #115 from sgotti/runservice_save_run_exitstatus
runservice: save step exitstatus in run.
2019-09-17 16:47:51 +02:00
Simone Gotti 39829f1ec4 runservice: save step exitstatus in run.
For every step save also the command exit status.
2019-09-17 14:35:37 +02:00
Simone Gotti 25c5002782
Merge pull request #113 from sgotti/runservice_dont_save_executor_data_etcd
runservice: don't save executor task data in etcd
2019-09-17 14:35:01 +02:00
Simone Gotti 12b02143b2 runservice: don't save executor task data in etcd
Reorganize ExecutorTask to better distinguish between the task Spec and
the Status.

Split the task Spec in a sub part called ExecutorTaskSpecData that contains
tasks data that don't have to be saved in etcd because it contains data that can
be very big and can be generated starting from the run and the runconfig.
2019-09-17 12:03:43 +02:00
Simone Gotti 947be9a742
Merge pull request #109 from sgotti/runservice_workspace_cleanup
runservice: add run workspace cleaner
2019-09-17 11:04:51 +02:00
Simone Gotti 7d375e4c4e runservice: add run workspace cleaner
Removes old workspace files (defaults to 7 days)
2019-09-17 09:40:23 +02:00
Simone Gotti ab06a2283c
Merge pull request #112 from sgotti/executor_set_user_every_step
executor: set the container exec user in every step
2019-09-17 09:40:00 +02:00
Simone Gotti 6ee76274d7 executor: set the container exec user in every step 2019-09-12 10:55:07 +02:00
Simone Gotti bbd287845f
Merge pull request #111 from sgotti/runconfig_set_default_shell
runconfig: set task default shell
2019-09-12 10:53:08 +02:00
Simone Gotti 51e9a32db7 runconfig: set task default shell
Currently, if no shell is defined in the task and in the step, the executor will
use an hardcoded default shell.

This will cause changed run behavior if we add an option to globally set the
agola default shell.

To avoid this set the task shell to the default shell inside the runconfig if
it's empty so future executions will always use this value.
2019-09-11 18:51:18 +02:00
Simone Gotti 512fdb361a
Merge pull request #110 from sgotti/runservice_remove_run_step_user
runservice: remove run step user
2019-09-11 16:24:59 +02:00
Simone Gotti 6d7410cfce runservice: remove run step user
Defining an option to override the user for a run step is too much fine grained
and, for consistency, will require to do the same also for the other steps
(clone, *workspace etc...).

Remove it since it's probably enough to define it at the task level.
2019-09-11 15:02:08 +02:00
Simone Gotti d8212eddb0
Merge pull request #105 from sgotti/update_go_1.13
*: update to go 1.13
2019-09-10 22:58:25 +02:00
Simone Gotti 6dd9a12e87 *: update to go 1.13
* agola run: Remove go 1.11 and use go 1.12 and go 1.13 with debian buster image.

* Dockerfile: Use go 1.13 debian buster image.
2019-09-10 14:08:55 +02:00
Simone Gotti 33c860e78c
Merge pull request #103 from sgotti/gitserver_dont_write_on_error
gitserver: don't return http response/error when calling external git process
2019-09-09 16:43:40 +02:00
Simone Gotti 30192d5f0f
Merge pull request #102 from sgotti/fix_path_list_ending_slash
util: Fix PathList output when path ends with slashes
2019-09-09 16:12:08 +02:00
Simone Gotti 0e61aa4e39 gitserver: don't return http response/error when calling external git process
On a git process error don't write the error message to the response body since
it'll break the git protocol and don't try to write the status header (since it's not
possible as it was automatically written by the go http server before writing
the body).
2019-09-09 15:46:32 +02:00
Simone Gotti 9f580863da util: Fix PathList output when path ends with slashes
Fix PathList when a path ends with one or more slashes and add related tests.
2019-09-09 14:49:00 +02:00
Simone Gotti 6ca985c641
Merge pull request #100 from sgotti/update_dep_agola-web_v0.2.0
agola run: update to agola-web v0.2.0
2019-09-06 10:32:40 +02:00
Simone Gotti ed071efbda agola run: update to agola-web v0.2.0 2019-09-06 09:48:45 +02:00