xebialabs-community / xl-ci-tool Goto Github PK
View Code? Open in Web Editor NEWCommand-line tool to migrate XL Release or XL Deploy ci-types. Useful when plugins are updated with refactored ci-type names.
License: MIT License
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.