Skip to content

watch for new files on FTP Folder #29

@b2un0

Description

@b2un0

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions