# Unable to force \<\< pipeline.number \>\> to be type string

**URL:** <https://discuss.circleci.com/t/unable-to-force-pipeline-number-to-be-type-string/40201>\
**Category:** Bug Reports\
**Tags:** circle-yml\
**Created:** [May 26, 2021, 7:02pm UTC](https://discuss.circleci.com/t/unable-to-force-pipeline-number-to-be-type-string/40201 "2021-05-26T19:02:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon-swanson](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/simon-swanson/32/24635_2.png) [@simon-swanson](https://discuss.circleci.com/u/simon-swanson)\
**Post date:** [May 26, 2021, 7:02pm UTC](https://discuss.circleci.com/t/unable-to-force-pipeline-number-to-be-type-string/40201/1 "2021-05-26T19:02:19Z")

</div>

I’m trying out the Artifactory orbs and encountering the same problem on each.

- [CircleCI Developer Hub - takescoop/artifactory](https://circleci.com/developer/orbs/orb/takescoop/artifactory)
- [CircleCI Developer Hub - jfrog/artifactory-orb](https://circleci.com/developer/orbs/orb/jfrog/artifactory-orb)

I’d like the build integration’s build number to be my pipeline number, so I added this block to a job:

```yaml
    steps:
      ...
      - artifactory/build-integration:
          build-name: blahblahblah
          build-number: '<< pipeline.number >>

```

However this gets interperted as an integer and causes a build error (that annoyingly isn’t caught by the CLI’s validate command):

```auto
Type error for argument build-number: expected type: string, actual value: "1234567890" (type integer)

Error calling command: 'artifactory/build-integration'
Error calling job: 'job'
Error calling workflow: 'workflow'

```

I’ve been unable to force this to be interpreted as a string and have had to resort to storing the pipeline number in an environment variable and using that. I’d like to not have to remember to do that in every job; how can I make the pipeline number a string?

---

<div class="post-metadata">

**Author:** ![pguinard-public-com](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/pguinard-public-com/32/33136_2.png) [@pguinard-public-com](https://discuss.circleci.com/u/pguinard-public-com)\
**Post date:** [June 7, 2023, 7:57pm UTC](https://discuss.circleci.com/t/unable-to-force-pipeline-number-to-be-type-string/40201/2 "2023-06-07T19:57:03Z")

</div>

Running into a similar problem and due to us stripping empty space appending a space to the end of the number and enclosing it in quotes happened to work for us.

```auto
    steps:
      ...
      - artifactory/build-integration:
          build-name: blahblahblah
          build-number: '<< pipeline.number >> '

```

Ultimately going with json turned out to be cleaner for our use case

---

<div class="post-metadata">

**Author:** ![villelahdenvuo](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/villelahdenvuo/32/17891_2.png) [@villelahdenvuo](https://discuss.circleci.com/u/villelahdenvuo)\
**Post date:** [November 9, 2023, 4:30pm UTC](https://discuss.circleci.com/t/unable-to-force-pipeline-number-to-be-type-string/40201/3 "2023-11-09T16:30:18Z")

</div>

Kind of similar issue happens but in reverse with the updated Jira integration:

 ![Screenshot 2023-11-09 at 17.29.54](https://global.discourse-cdn.com/circleci/original/3X/4/c/4cce11ae5cef85ae5229cdca4319aa762ff626e5.png)

Copied directly from the usage example…
