rundeck / rundeck-cli

CLI tool for Rundeck
https://rundeck.github.io/rundeck-cli/
Apache License 2.0
132 stars 49 forks source link

SCM Import is constantly asking to update a job #289

Closed lukasged closed 4 years ago

lukasged commented 4 years ago

Describe the bug I have configured my Rundeck project to use the SCM Import from a Git repository.

The import works fine, but then after a few minutes, I see a notification icon that there are changes to be imported from Git, while I know that actually there are no changes at all.

When I click on Import Remote Changes and then click on View Diff... of the suggested file, it doesn't show any new commit in the configured Git repository, and just shows the following diff:

@@ -145,4 +145,3 @@
     strategy: node-first
   timeout: 1m
   uuid: 5e0g31c7-7175-42cd-95ef-0f234554ec00
-

It seems that it just tries to remove 1 blank line from the file.

If I choose to import that change, the interface doesn't show the suggested import until the next time that job is executed; and then it goes back to suggesting the same change again, removing the same blank line

My Rundeck detail

To Reproduce Steps to reproduce the behavior:

  1. Configure Rundeck to import the jobs from Git (SCM plugin)
  2. Import the jobs from Git
  3. Execute one of the imported jobs
  4. Observe that Rundeck now suggests to import the executed job again, suggesting to remove a single blank line from the file

Expected behavior After the job's import, Rundeck shouldn't offer to import the file again until there's an actual change in the configured Git repository.

Desktop (please complete the following information):

lukasged commented 4 years ago

To add more details of the described issue:



[Test_job.zip](https://github.com/rundeck/rundeck-cli/files/4235784/Test_job.zip)
lukasged commented 4 years ago

Actually, I realised that this issue is not related to rundeck-cli, so I moved it to the rundeck/rundeck issues: https://github.com/rundeck/rundeck/issues/5814