Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Bluemoon
Creator
Creator

Talend Cloud CI/CD issue, Specified workspace is not available for publish or not found!

Usercase: Deploy a simple DI to Talend Cloud.

Preconfiguration Steps:

1. Build from git to Nexus is Succesfull.

2. Maven, Git, Java configured.

3. Executed below maven command

 

Issue:

[ERROR] Failed to execute goal org.talend.ci:cloudpublisher-maven-plugin:7.2.1:publish (default) on project demo_di: Specified workspace is not available for publish or not found! -> [Help 1]org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.talend.ci:cloudpublisher-maven-plugin:7.2.1:publish (default) on project demo_di: Specified workspace is not available for publish or not found!
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.jvnet.hudson.maven3.launcher.Maven35Launcher.main (Maven35Launcher.java:130)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at jenkins.maven3.agent.Maven35Main.launch (Maven35Main.java:178)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at hudson.maven.Maven3Builder.call (Maven3Builder.java:139)
    at hudson.maven.Maven3Builder.call (Maven3Builder.java:70)
    at hudson.remoting.UserRequest.perform (UserRequest.java:212)
    at hudson.remoting.UserRequest.perform (UserRequest.java:54)
    at hudson.remoting.Request$2.run (Request.java:369)
    at hudson.remoting.InterceptingExecutorService$1.call (InterceptingExecutorService.java:72)
    at java.util.concurrent.FutureTask.run (FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624)
    at java.lang.Thread.run (Thread.java:748)
Caused by: org.apache.maven.plugin.MojoExecutionException: Specified workspace is not available for publish or not found!
    at org.talend.cloud.publisher.CloudPublisher.execute (CloudPublisher.java:299)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.jvnet.hudson.maven3.launcher.Maven35Launcher.main (Maven35Launcher.java:130)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at jenkins.maven3.agent.Maven35Main.launch (Maven35Main.java:178)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at hudson.maven.Maven3Builder.call (Maven3Builder.java:139)
    at hudson.maven.Maven3Builder.call (Maven3Builder.java:70)
    at hudson.remoting.UserRequest.perform (UserRequest.java:212)
    at hudson.remoting.UserRequest.perform (UserRequest.java:54)
    at hudson.remoting.Request$2.run (Request.java:369)
    at hudson.remoting.InterceptingExecutorService$1.call (InterceptingExecutorService.java:72)
    at java.util.concurrent.FutureTask.run (FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624)
    at java.lang.Thread.run (Thread.java:748)

 

Thanks for your help. In Advance!!

Labels (2)
1 Solution

Accepted Solutions
Bluemoon
Creator
Creator
Author

I have found 2 issue while publishing to cloud

1. It is unable to publish it to Default workspace.

2. It is case-sensitive

View solution in original post

3 Replies
Anonymous
Not applicable

Hello @Moe,

 

Your setup looks good to me. Your error mentions a workspace not available. I see you haven't specified a workspace and/or environment. Normally in this case, it should publish to your default one.

However depending of the configuration of your workspaces and environments in TMC you might have to specify one explicitely.

 

You have these two parameters:

-Dcloud.publisher.environment=PROD
-Dcloud.publisher.workspace=CI_WORKSPACE

Also, verify the permissions you have with the user you use to publish. It needs to have the rights to publish to the workspace/env.

 

Thanks,

Thibaut

AnandK1
Contributor
Contributor

I have the same issue. I specified both env and workspace. But I still get the same error.
I have enabled debug to show that environment and workspace is set.

 

 

withMaven(
// Maven installation declared in the Jenkins "Global Tool Configuration"
maven: 'M3',
// Maven settings.xml file defined with the Jenkins Config File Provider Plugin
// Maven settings and global settings can also be defined in Jenkins Global Tools Configuration
mavenSettingsConfig: 'maven-file-cloud',
mavenOpts: '-Dlicense.path=/ebs/talend/Talend721/license -Dupdatesite.path=${TALEND_CMDLINE_UPDATE_SITE} -Dservice.url=${CLOUD_URL} -Dcloud.publisher.screenshot=true -Dcloud.publisher.environment=DEV -Dcloud.publisher.workspace=CI_WORKSPACE -Xms1024m -Xmx4096m'
) {

// Run the maven build
sh "mvn -X -f $PROJECT_GIT_NAME/poms/pom.xml -Pcloud-publisher clean deploy -fn -e -pl jobs/process${TYPE}/${ARTIFACT}_${VERSION} -am"
}

 

[DEBUG] Configuring mojo 'org.talend.ci:cloudpublisher-maven-plugin:7.2.1:publish' with basic configurator -->
[DEBUG]   (f) environment = DEV
[DEBUG]   (f) jobScreenshot = true
[DEBUG]   (f) serviceUrl = https://tmc.us.cloud.talend.com/inventory/
[DEBUG]   (f) session = org.apache.maven.execution.MavenSession@41394595
[DEBUG]   (f) workspace = CI_WORKSPACE
[DEBUG] -- end configuration --
[INFO] Cloud service: https://tmc.us.cloud.talend.com/inventory/
[INFO] Accelerate: false
[INFO] Auth method: BasicAuth
[INFO] RelativePath: process
[INFO] StartingDir: /var/lib/jenkins/workspace/Talend_Pipeline_721/EDWIN_TALEND_CICD_TEST/process
[INFO] DefaultContext: dev
[INFO] JobType: standard
[INFO] Artifact id: StdDemoJob
[INFO] Artifact groupId: 
[INFO] The latest published version is: null
[INFO] Publish version: 0.1.0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] EDWIN_TALEND_CICD_TEST Codes Master 0.1.0-SNAPSHOT . SUCCESS [ 43.093 s]
[INFO] EDWIN_TALEND_CICD_TEST Routines 0.1.0-SNAPSHOT ..... SUCCESS [  1.949 s]
[INFO] EDWIN_TALEND_CICD_TEST StdDemoJob-0.1.0 (0.1,Job Designs) 0.1.0 FAILURE [  3.281 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  48.543 s
[INFO] Finished at: 2019-10-04T11:23:36-04:00
[INFO] ------------------------------------------------------------------------
[INFO] [jenkins-event-spy] Generated /var/lib/jenkins/workspace/Talend_Pipeline_721@tmp/withMavenea2e712f/maven-spy-20191004-112247-7205312449277920726560.log
[ERROR] Failed to execute goal org.talend.ci:cloudpublisher-maven-plugin:7.2.1:publish (default) on project StdDemoJob: Specified workspace is not available for publish or not found! -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.talend.ci:cloudpublisher-maven-plugin:7.2.1:publish (default) on project StdDemoJob: Specified workspace is not available for publish or not found!
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: Specified workspace is not available for publish or not found!
    at org.talend.cloud.publisher.CloudPublisher.execute (CloudPublisher.java:299)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)

 

Bluemoon
Creator
Creator
Author

I have found 2 issue while publishing to cloud

1. It is unable to publish it to Default workspace.

2. It is case-sensitive