July 30, 2023

tSVNLogInput – Docs for ESB 7.x

tSVNLogInput

Retrieves the information of a specified revision or range of revisions from an
SVN repository.

tSVNLogInput Standard properties

These properties are used to configure tSVNLogInput running in the Standard Job framework.

The Standard
tSVNLogInput component belongs to the Internet family.

The component in this framework is available in all Talend
products
.

Basic settings

URL

Type in the URL to the SVN repository to be accessed.

Need authentication?

Select this check box if authentication is needed to access the SVN
repository.

Username and Password

Enter the username and password to access the SVN repository if
authentication is needed.

To enter the password, click the […] button next to the
password field, and then in the pop-up dialog box enter the password between double quotes
and click OK to save the settings.

These two fields appear only when the Need
authentication?
check box is selected.

From revision

Specify a start revision number of the revision range.

Only this revision

Select this check box if you need to retrieve the information of only the
revision specified in the From revision
field.

To revision

Specify an end revision number of the revision range. Enter ‘HEAD’ for the latest revision.

This field disappears when the Only this
revision
check box is selected.

Schema and Edit schema

A schema is a row description, it defines the fields to be processed and
passed on to the next component.

The schema of this component is read-only. It describes the properties of
the revision information. You can click the […] button next to Edit
schema
to view the predefined schema which contains the
following fields:

  • revision: the revision number of
    the log message.

  • author: the author who commits the
    log message.

  • date: the date when the log
    message was committed.

  • message: the content of the log
    message.

  • nb_file_added: the number of added
    files.

  • nb_file_modified: the number of
    modified files.

  • nb_file_deleted: the number of
    deleted files.

Advanced settings

tStatCatcher Statistics

Select this check box to gather the Job processing metadata at a Job
level as well as at each component level.

Global Variables

Global Variables

NB_LINE: the number of rows processed. This is an After
variable and it returns an integer.

ERROR_MESSAGE: the error message generated by the
component when an error occurs. This is an After variable and it returns a string. This
variable functions only if the Die on error check box is
cleared, if the component has this check box.

A Flow variable functions during the execution of a component while an After variable
functions after the execution of the component.

To fill up a field or expression with a variable, press Ctrl +
Space
to access the variable list and choose the variable to use from it.

For further information about variables, see
Talend Studio

User Guide.

Usage

Usage rule

This component is usually used as a start component in a Job and it needs
an output link.

Connections

Outgoing links (from this component to another):

Row: Main, Iterate

Trigger: On Subjob Ok, On Subjob Error, Run
if, On Component Ok, On Component Error

Incoming links (from one component to this one):

Row: Main, Iterate

Trigger: On Subjob Ok, On Subjob Error, Run
if, On Component Ok, On Component Error

For further information about connections, see
Talend Studio
User Guide
.

Retrieving a log message from an SVN repository

This scenario describes a two-component Job that retrieves the information of a
specified revision from an SVN repository, and displays the information on the
console.

tSVNLogInput_1.png

Procedure

  1. Create a new Job and add the following two components by typing their names in the
    design workspace or dropping them from the Palette:
    a tSVNLogInput component and a tLogRow component.
  2. Connect tSVNLogInput to tLogRow using a Row > Main link.
  3. Double-click tSVNLogInput to open its Basic settings view.

    tSVNLogInput_2.png

  4. In the URL field, enter the URL to the SVN
    repository to be accessed. In this example, it is https://talend.com/svndoc/. Note that the login credentials provided
    here is for demonstration only.
  5. Select the Need authentication? check box and
    fill in the Username and Password fields with your authentication information.
  6. Specify a revision or revision range. In this example, we want to retrieve the
    information of revision 17090 only, so enter 17090
    in the From revision field and select the Only this revision check box.
  7. Double-click tLogRow to open its Basic settings view.

    tSVNLogInput_3.png

  8. Define the way you want the output data to be displayed on the console. In this
    example, enter
    in the Field Separator field to display each field of the revision
    information in a separate line.
  9. Select the Print schema column name in front of each
    value
    check box to show the name of each field of the revision
    information at the beginning of each line.
  10. Press Ctrl + S to save the Job and then F6 to run the Job.

    tSVNLogInput_4.png

    As shown above, the information of the specified revision is displayed on the
    console.

Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x