I’m trying to run Liquibase update in a Jenkins Declarative Pipeline.
Tried to way to execute update
First Attempt used this method
steps {
liquibaseUpdate (
changeLogFile:’./src/main/resources/dbchangelog/DEPLOY_INT_UTILITY-msdb_DB.xml’,
liquibasePropertiesPath:’./src/main/resources/liquibase.properties’
)
}
Second attempt use this method
steps {
liquibaseUpdate {
changeLogFile(’./src/main/resources/dbchangelog/DEPLOY_INT_UTILITY-msdb_DB.xml’)
liquibasePropertiesPath(’./src/main/resources/liquibase.properties’)
}
}
Error Message
[Checks API] No suitable checks publisher found.
java.lang.NoSuchMethodError: No such DSL method ‘liquibaseUpdate’ found among steps [ArtifactoryGradleBuild, MavenDescriptorStep, addInteractivePromotion, ansiColor, archive, artifactoryBuildTrigger, artifactoryDistributeBuild, artifactoryDownload, artifactoryEditProps, artifactoryGoPublish, artifactoryGoRun, artifactoryMavenBuild, artifactoryNpmInstall, artifactoryNpmPublish, artifactoryNugetRun, artifactoryPipRun, artifactoryPromoteBuild, artifactoryUpload, bat, build, catchError, checkout, collectEnv, collectIssues, compareVersions, conanAddRemote, conanAddUser, deleteDir, deployArtifacts, dir, dockerFingerprintFrom, dockerFingerprintRun, dockerPullStep, dockerPushStep, echo, emailext, emailextrecipients, envVarsForTool, error, fileExists, findBuildScans, findFiles, getArtifactoryServer, getContext, getLastChangesPublisher, git, githubNotify, httpRequest, initConanClient, input, isUnix, jfPipelines, jiraComment, jiraIssueSelector, jiraSearch, junit, library, libraryResource, load, lock, mail, milestone, newArtifactoryServer, newBuildInfo, newGoBuild, newGradleBuild, newMavenBuild, newNpmBuild, newNugetBuild, newPipBuild, nexusPolicyEvaluation, nexusPublisher, node, nodesByLabel, office365ConnectorSend, parallel, powershell, properties, publishBuildInfo, publishChecks, publishHTML, publishLastChanges, pwd, pwsh, readCSV, readFile, readJSON, readManifest, readMavenPom, readProperties, readTrusted, readYaml, resolveScm, retry, rtAddInteractivePromotion, rtBuildInfo, rtBuildTrigger, rtCollectIssues, rtConanClient, rtConanRemote, rtConanRun, rtDeleteProps, rtDockerPush, rtDotnetResolver, rtDotnetRun, rtDownload, rtGoDeployer,