GithubHelp home page GithubHelp logo

xebialabs-community / xl-ci-tool Goto Github PK

View Code? Open in Web Editor NEW
2.0 26.0 0.0 264 KB

Command-line tool to migrate XL Release or XL Deploy ci-types. Useful when plugins are updated with refactored ci-type names.

License: MIT License

Java 100.00%
xlr xld migration tool

xl-ci-tool's Issues

db-url is parsed incorrectly

given this file:

xl {
    database {
        db-driver-classname="com.microsoft.sqlserver.jdbc.SQLServerDriver"
        db-password=database
        db-url="jdbc:sqlserver://myhost:1433;databaseName=mydatabase_test"
        db-username=database
    }
    reporting {
        db-driver-classname="com.microsoft.sqlserver.jdbc.SQLServerDriver"
        db-password=reporting
        db-url="jdbc:sqlserver://myhost:1433;databaseName=myreporting_test"
        db-username=reporting
    }
}

The tool will fail to parse db-url correctly:

D:\temp>java -jar xl_ci_tool_exec-1.2.1.jar -f xlr-jira-mapping.json -i D:\SrvApps\Xebia\xl-release-9.0.2-server -preview
Beginning Migration
Preview has been set. Application will preview the results of the mapping actions but will not change the database.
Configuration is complete. The following values will be used: system = XLR, dbType = SQLSERVER, dbDriver = com.microsoft.sqlserver.jdbc.SQLServerDriver, dbUrl
= mydatabase_test, dbUsername = database, dbPwd = Using Default, reportDbType = SQLSERVER, reportDbDriver = com.microsoft.sqlserver.jdbc.SQLServerDriver, r
eportDdbUrl = myreporting_, reportDbUsername = reporting, reportDbPwd = Using Default
Connecting to database...
java.sql.SQLException: No suitable driver found for mydatabase_test
        at java.sql.DriverManager.getConnection(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at com.xebialabs.migration.Migration.main(Migration.java:190)

Expected:

db-url are correctly parsed to ""jdbc:sqlserver://myhost:1433;databaseName=mydatabase_test" and "jdbc:sqlserver://myhost:1433;databaseName=myreporting_test"

Fix:

do not call cleanValue in https://github.com/xebialabs-community/xl-ci-tool/blob/master/src/main/java/com/xebialabs/migration/parser/MigrationConfigParser.java#L129

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.