Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

watch for new files on FTP Folder #29

Open
b2un0 opened this issue Mar 30, 2020 · 1 comment
Open

watch for new files on FTP Folder #29

b2un0 opened this issue Mar 30, 2020 · 1 comment

Comments

@b2un0
Copy link

b2un0 commented Mar 30, 2020

we are try to using the following config to trigger a build, if some file is placed in one of the two FOLDER_* directories.

But nothing happens, any idea whats wrong?

properties([
        disableConcurrentBuilds(),
        buildDiscarder(logRotator(numToKeepStr: '30')),
        pipelineTriggers([
                URLTrigger(
                        cronTabSpec: 'H/5 09-18 * * 1-5',
                        entries: [
                                URLTriggerEntry(
                                        url: "ftp://${ftpUrl}/FOLDER_1/",
                                        username: ftpUser,
                                        password: ftpPw,
                                        contentTypes: [
                                                MD5Sum()
                                        ]
                                ),
                                URLTriggerEntry(
                                        url: "ftp://${ftpUrl}/FOLDER_2/",
                                        username: ftpUser,
                                        password: ftpPw,
                                        contentTypes: [
                                                MD5Sum()
                                        ]
                                )
                        ]
                )
        ])
])

the logs are here:

[URLTrigger] - Poll with a URL

Inspecting Monitor a change of the content content for URL ftp://${ftpUrl}/FOLDER_1

Polling started on Mar 30, 2020 5:21:00 PM
Polling for the job XYZ
Looking nodes where the poll can be run.
Looking for a candidate node to run the poll.
Trying to find an eligible node with the assigned project label master.

Polling on master.
Resolving environment variables using global values

Polling complete. Took 0.28 sec.
No changes.

@TonyNoble
Copy link
Contributor

Hi @b2un0 - from a cursory look, it seems as though the trigger only currently looks at file contents, rather than directory contents (I'd need to set up an FTP server and experiment to prove this). Looking at the underlying client that's used for the connection, it should be possible to develop what you're looking for, but doesn't seem to be the case that it does it at the moment.

I'll add this to the wishlist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants