Hi,
You should wrap the entire url with quotes (i.e. *'*
https://host/artifactory/repokey/file.jar;propKey=propValue*'*). In
addition, since you have slashes in your properties values, you must encode
these values (here <http://meyerweb.com/eric/tools/dencoder/> is an example
for an online URL encoder tool). Also, I believe that the the '\' before
'.parentNumber' is not necessary.
Btw, if marking your artifacts with the build information is what you are
trying to achieve, you might want to look into Artifactory's build
integration <https://www.jfrog.com/confluence/display/RTF/Build+Integration>
which
does this for you. Artifactory has plugins for many build tools and CI
servers such as maven, Gradle, Jenkins, Bamboo, Teamcity and more and these
plugins responsible to create a build information entity for your build in
Artifactory, mark your artifact with the build name and number information
and more.
Shay
On Thu, Jul 21, 2016 at 12:06 AM, zw [via Artifactory] <
[email protected]> wrote:
> Hi All
>
> We like to set a few properties via curl but we're getting command not
> found by our synxtax.
> This is a new artifact to deploy to the artifactory repo directory.
> We are not sure if build.number and build.name are by default already
> available variables/properties in artifactory when the repo directory
> fk-SNAPSHOT was first created or do we have to create them ie the build.xxx
> variables/properties from scratch.
>
> [ppl@host ~]# curl -X PUT -v -u user:pass --data-binary @/test/fk/fk.zip
> -H "X-Checksum-Sha1:eeeee747dd26ddcadecd4ad29da7293c397dfc0f" -H
> "X-Checksum-Md5:eeeeec86ebb6b4247fa5c209e0826969" -i
> https://artifactory-xxx.com/artifactory/release-local/fk-SNAPSHOT/fk.zip;buildURL=http://host:8080/jenkins/job/Translation/58/;buildNumber=58;hudsonURL=http://host.com:8080/jenkins/;Revision=129172;build\.parentNumber=58
>
> * About to connect() to xxx.com port 443 (#0)
> :
> :
> },
> "uri" : "
> https://artifactory-xxx.com/artifactory/release-local/fk-SNAPSHOT/fk.zip"
> * Connection #0 to host artifactory-xxx.com left intact
> }*bash: build.parentNumber=58: command not found...*
>
> What are we doing wrong in syntax?
> Any help is appreciated.
>
> Thanks
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://forums.jfrog.org/Cant-set-build-number-and-build-name-properties-tp7581104.html
> To start a new topic under Artifactory - Users, email
> [email protected]
> To unsubscribe from Artifactory, click here
> <http://forums.jfrog.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2380776&code=c2hheWJAamZyb2cuY29tfDIzODA3NzZ8MTU0NDg2MTQ3OA==>
> .
> NAML
> <http://forums.jfrog.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
View this message in context:
http://forums.jfrog.org/Cant-set-build-number-and-build-name-properties-tp7581104p7581111.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users