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

cannot use in pipeline #31

Open
dseynaev opened this issue Dec 8, 2020 · 2 comments
Open

cannot use in pipeline #31

dseynaev opened this issue Dec 8, 2020 · 2 comments

Comments

@dseynaev
Copy link

dseynaev commented Dec 8, 2020

We are not able to run the examples provided in https://github.com/jenkinsci/liquibase-runner-plugin/blob/master/src/docs/pipeline.md

Everything fails with errors as:

java.lang.NoSuchMethodError: No such DSL method 'liquibaseUpdate' found among steps

And none of the liquibase related steps show up in the steps reference

However, several Liquibase build steps are available in UI when creating a freestyle job.

Version 1.4.10 of the plugin is installed.
Jenkins version is 2.263.1

@davidecavestro
Copy link

Same here. Any update?
It fails both with declarative and scriped pipelines, i.e.

node ('jenkins-mine'){
    writeFile file: 'changelog.xml', text: """
<?xml version="1.0" encoding="UTF-8"?>   
<databaseChangeLog   
  xmlns="http://www.liquibase.org/xml/ns/dbchangelog"   
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   
  xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
                      http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">   
  <changeSet  author="authorName"  id="changelog-1.0">  
    <createTable  tableName="TablesAndTables">  
      <column  name="COLUMN1"  type="TEXT">  
        <constraints  nullable="true"  primaryKey="false"  unique="false"/>  
      </column>  
    </createTable>  
  </changeSet>  
</databaseChangeLog> 
"""
    stage('Migrate') {
        // using minimum configuration will cause the plugin to use an H2 inmemory database.
        liquibaseUpdate('changelog.xml')
    }
}

Jenkins 2.277.4
Liquibase runner plugin 1.4.10

@artogahr
Copy link

artogahr commented Jul 9, 2024

Hi all, was there ever an update on this?

We're seeing this behavior in our Jenkins pipeline, even though the plugin is installed.

We're not using maven, so the mvn plugin isn't an option either.

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

3 participants