Jenkins-在错误的路径中找到maven-wrapper.properties

时间:2019-02-17 19:56:12

标签: java maven jenkins

下面是脚本管道(Jenkins)中的代码段:

function bar(callback){
    callback();
}

bar(foo);
出现以下错误的

function bar(){
    foo();
}

bar();

private string ReadSqlFile(string relativePath) { var path = Path.Combine(AppContext.BaseDirectory, relativePath); return File.ReadAllText(path); } protected override void Up(MigrationBuilder migrationBuilder) { //some migrations methods var script = ReadSqlFile("Migrations/DataMigration/AddNewCountryFieldToStudent.sql"); migrationBuilder.Sql(script); } 给出const screemwarriors = () => { var warriors = "Ninja"; shootwarriors = function(){ console.log(warriors); } } const output = screemwarriors(); console.log(output.shootwarriors());


根据上述错误: sh 'echo ${WORKSPACE}' env.PATH="${WORKSPACE}/xyz-app:${env.PATH}" sh '${WORKSPACE}/xyz-app/mvnw clean install' 是文件+ /app/jenkins/workspace/CU_project/for_xyz/xyz-app/mvnw clean install /app/jenkins/workspace/CU_project/for_xyz/xyz-app/mvnw: 236: /app/jenkins/workspace/CU_project/for_xyz/xyz-app/mvnw: cannot open /app/jenkins/workspace/CU_project/for_xyz/.mvn/wrapper/maven-wrapper.properties: No such file /app/jenkins/workspace/CU_project/for_xyz/.mvn/wrapper/maven-wrapper.jar: No such file or directory Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain 的错误路径。

正确的路径是echo ${WORKSPACE}


如何为/app/jenkins/workspace/CU_project/for_xyz配置工作区以从正确的路径中选择参数?

0 个答案:

没有答案