Help, my plugin could't through jenkins ci.

21 views
Skip to first unread message

liuweiGL

unread,
Jan 22, 2020, 12:26:49 AM1/22/20
to Jenkins Developers
Jenkinsfile:

def mvnCmd = "mvn install:install-file -DgroupId=com.dingtalk.open -DartifactId=taobao-sdk-java-auto -Dversion=1.0 -Dpackaging=jar -Dfile=./maven/taobao-sdk-java-auto/taobao-sdk-java-auto_1479188381469-20191227.jar"

node('maven'){
   disableConcurrentBuilds()
   checkout scm

    stage('Install'){
       sh mvnCmd
   }

    stage('Build'){
       buildPlugin()
   }
}

Error log:

Failed to execute goal on project dingding-notifications: Could not resolve dependencies for project io.jenkins.plugins:dingding-notifications:hpi:2.0.1-SNAPSHOT: Could not find artifact com.dingtalk.open:taobao-sdk-java-auto:jar:1.0 in azure-incrementals (https://repo.azure.jenkins.io/incrementals/)


Detail log reference: 


  • I've been trying all day, but i still fail. Why? I've installed the dependency locally, it's confusing to me.


Ullrich Hafner

unread,
Jan 22, 2020, 2:04:58 AM1/22/20
to Jenkins Developers
All of your dependencies must be available online. Is this jar available somewhere in a public maven repository? 

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/99afdef8-a0aa-4e57-b256-7d0bb729e516%40googlegroups.com.

liuweiGL

unread,
Jan 22, 2020, 2:36:13 AM1/22/20
to Jenkins Developers
No, the jar locatioin in my project repository, and i had use sh mvnCmd to install,it doesn't seem to work.



在 2020年1月22日星期三 UTC+8下午3:04:58,Ullrich Hafner写道:
All of your dependencies must be available online. Is this jar available somewhere in a public maven repository? 
Am 22.01.2020 um 06:26 schrieb liuweiGL <liuwe...@gmail.com>:

Jenkinsfile:

def mvnCmd = "mvn install:install-file -DgroupId=com.dingtalk.open -DartifactId=taobao-sdk-java-auto -Dversion=1.0 -Dpackaging=jar -Dfile=./maven/taobao-sdk-java-auto/taobao-sdk-java-auto_1479188381469-20191227.jar"

node('maven'){
   disableConcurrentBuilds()
   checkout scm

    stage('Install'){
       sh mvnCmd
   }

    stage('Build'){
       buildPlugin()
   }
}

Error log:

Failed to execute goal on project dingding-notifications: Could not resolve dependencies for project io.jenkins.plugins:dingding-notifications:hpi:2.0.1-SNAPSHOT: Could not find artifact com.dingtalk.open:taobao-sdk-java-auto:jar:1.0 in azure-incrementals (https://repo.azure.jenkins.io/incrementals/)


Detail log reference: 


  • I've been trying all day, but i still fail. Why? I've installed the dependency locally, it's confusing to me.



--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkin...@googlegroups.com.

Ullrich Hafner

unread,
Jan 22, 2020, 2:42:55 AM1/22/20
to Jenkins Developers
Then it cannot work: other users cannot build your plugin as well.

Is the jar somehow proprietary and does not use an open source license? Can you please elaborate what this library is about and why it is not in available in a public repository? 
If it is open source then you can deploy the artifact in our Nexus instance.

To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/b1895bd9-f713-4d84-9528-df4a9e0b687d%40googlegroups.com.

Message has been deleted
Message has been deleted

liuweiGL

unread,
Jan 22, 2020, 3:12:40 AM1/22/20
to Jenkins Developers
The jar is sdk of  DingTalk(钉钉), and it belongs to Alibabai don't know the reason also, i will consult them and deploy the artifact in your Nexus instance.

But, i don't know what to do... Is there any documentation you can refer to, thank you.

If it is open source then you can deploy the artifact in our Nexus instance

在 2020年1月22日星期三 UTC+8下午3:42:55,Ullrich Hafner写道:

Ullrich Hafner

unread,
Jan 22, 2020, 3:58:54 AM1/22/20
to Jenkins Developers
First of all please make sure that we are allowed to publish the API in our public Nexus, I can’t find any English page that references the library.

To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/aba6e51d-eff9-4fb1-ab15-2df05f4d532f%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages